Package opennlp.tools.ml.model
Class GenericModelWriter
- java.lang.Object
-
- opennlp.tools.ml.model.AbstractModelWriter
-
- opennlp.tools.ml.model.GenericModelWriter
-
public class GenericModelWriter extends AbstractModelWriter
-
-
Constructor Summary
Constructors Constructor Description GenericModelWriter(AbstractModel model, DataOutputStream dos)
GenericModelWriter(AbstractModel model, File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
persist()
void
writeDouble(double d)
void
writeInt(int i)
void
writeUTF(String s)
-
-
-
Constructor Detail
-
GenericModelWriter
public GenericModelWriter(AbstractModel model, File file) throws IOException
- Throws:
IOException
-
GenericModelWriter
public GenericModelWriter(AbstractModel model, DataOutputStream dos)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in classAbstractModelWriter
- Throws:
IOException
-
persist
public void persist() throws IOException
- Specified by:
persist
in classAbstractModelWriter
- Throws:
IOException
-
writeDouble
public void writeDouble(double d) throws IOException
- Specified by:
writeDouble
in classAbstractModelWriter
- Throws:
IOException
-
writeInt
public void writeInt(int i) throws IOException
- Specified by:
writeInt
in classAbstractModelWriter
- Throws:
IOException
-
writeUTF
public void writeUTF(String s) throws IOException
- Specified by:
writeUTF
in classAbstractModelWriter
- Throws:
IOException
-
-