public class DATMaker extends Object
| Constructor and Description |
|---|
DATMaker() |
| Modifier and Type | Method and Description |
|---|---|
Item[] |
getDAT()
获得dat数组
|
char |
getLastChar(String word)
获得一个词语的最后一个字符
|
Item |
getPre(Item item)
找到该字符串上一个的位置字符串上一个的位置
|
void |
maker(String dicPath)
构建默认的DAT
|
void |
maker(String dicPath,
Class<? extends Item> cla)
构建用户自定义的dat
|
void |
save(String path)
序列化dat对象
|
void |
saveText(String path)
保存到可阅读的文本.需要重写这个类
|
public void maker(String dicPath, Class<? extends Item> cla) throws FileNotFoundException, InstantiationException, IllegalAccessException
public char getLastChar(String word)
public Item[] getDAT()
public void save(String path) throws IOException
IOExceptionpublic void saveText(String path) throws IOException
IOExceptionCopyright © 2016. All rights reserved.