|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.annolab.tt4j.TreeTaggerModelReader
public class TreeTaggerModelReader
Reader for TreeTagger model files.
| Constructor Summary | |
|---|---|
TreeTaggerModelReader()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeTaggerModelReader()
| Method Detail |
|---|
public TreeTaggerModel read(InputStream aIn)
throws IOException
aIn - an input stream.
IOException
protected List<String> readStrings(int aCount)
throws IOException
IOException
protected boolean decodeVersion(TreeTaggerModel aModel,
int aVersion,
ByteOrder aByteOrder)
protected String readZeroTerminatedString(String aCharsetName)
throws IOException
IOException
protected byte[] readZeroTerminatedByteArray()
throws IOException
IOExceptionpublic String getEncoding()
public void setEncoding(String aCharsetName)
public boolean isReadDictionary()
public void setReadDictionary(boolean aReadDictionary)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||