public class TreeTaggerModelReader extends Object
| Constructor and Description |
|---|
TreeTaggerModelReader() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
decodeVersion(TreeTaggerModel aModel,
int aVersion,
ByteOrder aByteOrder) |
String |
getEncoding()
Get the encoding used for reading the dictionary.
|
boolean |
isReadDictionary()
Check if the dictionary is read or skipped.
|
TreeTaggerModel |
read(InputStream aIn)
Read the model from a stream.
|
protected List<String> |
readStrings(int aCount) |
protected byte[] |
readZeroTerminatedByteArray() |
protected String |
readZeroTerminatedString(String aCharsetName) |
void |
setEncoding(String aCharsetName)
Set the encoding used by the dictionary.
|
void |
setReadDictionary(boolean aReadDictionary)
Set if the dictionary is read or skipped.
|
public TreeTaggerModel read(InputStream aIn) throws IOException
aIn - an input stream.IOExceptionprotected List<String> readStrings(int aCount) throws IOException
IOExceptionprotected boolean decodeVersion(TreeTaggerModel aModel, int aVersion, ByteOrder aByteOrder)
protected String readZeroTerminatedString(String aCharsetName) throws IOException
IOExceptionprotected byte[] readZeroTerminatedByteArray()
throws IOException
IOExceptionpublic String getEncoding()
public void setEncoding(String aCharsetName)
public boolean isReadDictionary()
public void setReadDictionary(boolean aReadDictionary)
Copyright © 2014. All Rights Reserved.