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, java.io.DataOutputStream dos)
GenericModelWriter(AbstractModel model, java.io.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(java.lang.String s)
-
-
-
Constructor Detail
-
GenericModelWriter
public GenericModelWriter(AbstractModel model, java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
GenericModelWriter
public GenericModelWriter(AbstractModel model, java.io.DataOutputStream dos)
-
-
Method Detail
-
close
public void close() throws java.io.IOException
- Specified by:
close
in classAbstractModelWriter
- Throws:
java.io.IOException
-
persist
public void persist() throws java.io.IOException
- Specified by:
persist
in classAbstractModelWriter
- Throws:
java.io.IOException
-
writeDouble
public void writeDouble(double d) throws java.io.IOException
- Specified by:
writeDouble
in classAbstractModelWriter
- Throws:
java.io.IOException
-
writeInt
public void writeInt(int i) throws java.io.IOException
- Specified by:
writeInt
in classAbstractModelWriter
- Throws:
java.io.IOException
-
writeUTF
public void writeUTF(java.lang.String s) throws java.io.IOException
- Specified by:
writeUTF
in classAbstractModelWriter
- Throws:
java.io.IOException
-
-