opennlp.maxent.io
Class ObjectGISModelWriter
java.lang.Object
opennlp.model.AbstractModelWriter
opennlp.maxent.io.GISModelWriter
opennlp.maxent.io.ObjectGISModelWriter
public class ObjectGISModelWriter
- extends GISModelWriter
Constructor Summary |
ObjectGISModelWriter(AbstractModel model,
java.io.ObjectOutputStream dos)
Constructor which takes a GISModel and a ObjectOutputStream and prepares
itself to write the model to that stream. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectGISModelWriter
public ObjectGISModelWriter(AbstractModel model,
java.io.ObjectOutputStream dos)
- Constructor which takes a GISModel and a ObjectOutputStream and prepares
itself to write the model to that stream.
- Parameters:
model
- The GISModel which is to be persisted.dos
- The stream which will be used to persist the model.
writeUTF
public void writeUTF(java.lang.String s)
throws java.io.IOException
- Specified by:
writeUTF
in class AbstractModelWriter
- Throws:
java.io.IOException
writeInt
public void writeInt(int i)
throws java.io.IOException
- Specified by:
writeInt
in class AbstractModelWriter
- Throws:
java.io.IOException
writeDouble
public void writeDouble(double d)
throws java.io.IOException
- Specified by:
writeDouble
in class AbstractModelWriter
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in class AbstractModelWriter
- Throws:
java.io.IOException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.