opennlp.model
Class AbstractModelReader

java.lang.Object
  extended by opennlp.model.AbstractModelReader
Direct Known Subclasses:
GenericModelReader, GISModelReader, PerceptronModelReader

public abstract class AbstractModelReader
extends java.lang.Object


Constructor Summary
AbstractModelReader(DataReader dataReader)
           
AbstractModelReader(java.io.File f)
           
 
Method Summary
abstract  void checkModelType()
           
abstract  AbstractModel constructModel()
           
 AbstractModel getModel()
           
 double readDouble()
          Implement as needed for the format the model is stored in.
 int readInt()
          Implement as needed for the format the model is stored in.
 java.lang.String readUTF()
          Implement as needed for the format the model is stored in.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractModelReader

public AbstractModelReader(java.io.File f)
                    throws java.io.IOException
Throws:
java.io.IOException

AbstractModelReader

public AbstractModelReader(DataReader dataReader)
Method Detail

readInt

public int readInt()
            throws java.io.IOException
Implement as needed for the format the model is stored in.

Throws:
java.io.IOException

readDouble

public double readDouble()
                  throws java.io.IOException
Implement as needed for the format the model is stored in.

Throws:
java.io.IOException

readUTF

public java.lang.String readUTF()
                         throws java.io.IOException
Implement as needed for the format the model is stored in.

Throws:
java.io.IOException

getModel

public AbstractModel getModel()
                       throws java.io.IOException
Throws:
java.io.IOException

checkModelType

public abstract void checkModelType()
                             throws java.io.IOException
Throws:
java.io.IOException

constructModel

public abstract AbstractModel constructModel()
                                      throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.