opennlp.maxent.io
Class ObjectGISModelReader

java.lang.Object
  extended by opennlp.maxent.io.GISModelReader
      extended by opennlp.maxent.io.ObjectGISModelReader

public class ObjectGISModelReader
extends GISModelReader


Field Summary
protected  java.io.ObjectInputStream input
           
 
Fields inherited from class opennlp.maxent.io.GISModelReader
NUM_PREDS
 
Constructor Summary
ObjectGISModelReader(java.io.ObjectInputStream dis)
          Constructor which directly instantiates the ObjectInputStream containing the model contents.
 
Method Summary
protected  double readDouble()
          Implement as needed for the format the model is stored in.
protected  int readInt()
          Implement as needed for the format the model is stored in.
protected  java.lang.String readUTF()
          Implement as needed for the format the model is stored in.
 
Methods inherited from class opennlp.maxent.io.GISModelReader
checkModelType, getCorrectionConstant, getCorrectionParameter, getModel, getOutcomePatterns, getOutcomes, getParameters, getPredicates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

input

protected java.io.ObjectInputStream input
Constructor Detail

ObjectGISModelReader

public ObjectGISModelReader(java.io.ObjectInputStream dis)
Constructor which directly instantiates the ObjectInputStream containing the model contents.

Parameters:
dis - The DataInputStream containing the model information.
Method Detail

readInt

protected int readInt()
               throws java.io.IOException
Description copied from class: GISModelReader
Implement as needed for the format the model is stored in.

Specified by:
readInt in class GISModelReader
Throws:
java.io.IOException

readDouble

protected double readDouble()
                     throws java.io.IOException
Description copied from class: GISModelReader
Implement as needed for the format the model is stored in.

Specified by:
readDouble in class GISModelReader
Throws:
java.io.IOException

readUTF

protected java.lang.String readUTF()
                            throws java.io.IOException
Description copied from class: GISModelReader
Implement as needed for the format the model is stored in.

Specified by:
readUTF in class GISModelReader
Throws:
java.io.IOException


Copyright © 2005 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.