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