opennlp.maxent.io
Class PlainTextGISModelWriter
java.lang.Object
opennlp.model.AbstractModelWriter
opennlp.maxent.io.GISModelWriter
opennlp.maxent.io.PlainTextGISModelWriter
public class PlainTextGISModelWriter
- extends GISModelWriter
Model writer that saves models in plain text format.
PlainTextGISModelWriter
public PlainTextGISModelWriter(AbstractModel model,
File f)
throws IOException,
FileNotFoundException
- Constructor which takes a GISModel and a File and prepares itself to
write the model to that file. Detects whether the file is gzipped or not
based on whether the suffix contains ".gz".
- Parameters:
model
- The GISModel which is to be persisted.f
- The File in which the model is to be persisted.
- Throws:
IOException
FileNotFoundException
PlainTextGISModelWriter
public PlainTextGISModelWriter(AbstractModel model,
BufferedWriter bw)
- Constructor which takes a GISModel and a BufferedWriter and prepares
itself to write the model to that writer.
- Parameters:
model
- The GISModel which is to be persisted.bw
- The BufferedWriter which will be used to persist the model.
writeUTF
public void writeUTF(String s)
throws IOException
- Specified by:
writeUTF
in class AbstractModelWriter
- Throws:
IOException
writeInt
public void writeInt(int i)
throws IOException
- Specified by:
writeInt
in class AbstractModelWriter
- Throws:
IOException
writeDouble
public void writeDouble(double d)
throws IOException
- Specified by:
writeDouble
in class AbstractModelWriter
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in class AbstractModelWriter
- Throws:
IOException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.