public class DictKit extends Object
DictKit class.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
DictKit.SensitiveStringDecoder |
| 构造器和说明 |
|---|
DictKit() |
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
decompress(String inflatedFile,
ByteBuffer data,
int offset,
int length,
boolean append) |
static DictKit.SensitiveStringDecoder[] |
detectEncodings(ByteBuffer inflatedBytes,
int offsetWords,
int offsetXml,
int defTotal,
int dataLen,
int[] idxData,
String[] defData) |
static void |
extract(String inflatedFile,
String indexFile,
String extractedWordsFile,
String extractedXmlFile,
String extractedOutputFile,
int[] idxArray,
int offsetDefs,
int offsetXml) |
static String |
getChinese(String english)
getChinese.
|
static void |
getIdxData(ByteBuffer dataRawBytes,
int position,
int[] wordIdxData) |
static String |
getSort(String english)
getSort.
|
static void |
inflate(ByteBuffer dataRawBytes,
List<Integer> deflateStreams,
String inflatedFile) |
static void |
readDefinitionData(ByteBuffer inflatedBytes,
int offsetWords,
int offsetXml,
int dataLen,
DictKit.SensitiveStringDecoder wordStringDecoder,
DictKit.SensitiveStringDecoder xmlStringDecoder,
int[] idxData,
String[] defData,
int i) |
static void |
readDictionary(String ld2File,
ByteBuffer dataRawBytes,
int offsetWithIndex) |
static void |
startDict()
startDict.
|
static void |
startDictFile(String ld2File)
startDict.
|
static String |
strip(String xml) |
static void |
writeInputStream(InputStream in,
OutputStream out) |
public static final long decompress(String inflatedFile, ByteBuffer data, int offset, int length, boolean append) throws IOException
IOExceptionpublic static final DictKit.SensitiveStringDecoder[] detectEncodings(ByteBuffer inflatedBytes, int offsetWords, int offsetXml, int defTotal, int dataLen, int[] idxData, String[] defData)
public static final void extract(String inflatedFile, String indexFile, String extractedWordsFile, String extractedXmlFile, String extractedOutputFile, int[] idxArray, int offsetDefs, int offsetXml) throws IOException, FileNotFoundException, UnsupportedEncodingException
public static final void getIdxData(ByteBuffer dataRawBytes, int position, int[] wordIdxData)
public static final void inflate(ByteBuffer dataRawBytes, List<Integer> deflateStreams, String inflatedFile)
public static final void readDefinitionData(ByteBuffer inflatedBytes, int offsetWords, int offsetXml, int dataLen, DictKit.SensitiveStringDecoder wordStringDecoder, DictKit.SensitiveStringDecoder xmlStringDecoder, int[] idxData, String[] defData, int i)
public static final void readDictionary(String ld2File, ByteBuffer dataRawBytes, int offsetWithIndex) throws IOException, FileNotFoundException, UnsupportedEncodingException
public static final void writeInputStream(InputStream in, OutputStream out) throws IOException
IOExceptionpublic static void startDict()
throws IOException
startDict.
IOException - if any.public static void startDictFile(String ld2File) throws IOException
startDict.
IOException - if any.Copyright © 2023. All rights reserved.