Package opennlp.tools.ml.model
Class PlainTextFileDataReader
- java.lang.Object
-
- opennlp.tools.ml.model.PlainTextFileDataReader
-
- All Implemented Interfaces:
DataReader
public class PlainTextFileDataReader extends java.lang.Object implements DataReader
-
-
Constructor Summary
Constructors Constructor Description PlainTextFileDataReader(java.io.BufferedReader in)
PlainTextFileDataReader(java.io.File f)
PlainTextFileDataReader(java.io.InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
readDouble()
int
readInt()
java.lang.String
readUTF()
-
-
-
Constructor Detail
-
PlainTextFileDataReader
public PlainTextFileDataReader(java.io.File f) throws java.io.IOException
- Throws:
java.io.IOException
-
PlainTextFileDataReader
public PlainTextFileDataReader(java.io.InputStream in)
-
PlainTextFileDataReader
public PlainTextFileDataReader(java.io.BufferedReader in)
-
-
Method Detail
-
readDouble
public double readDouble() throws java.io.IOException
- Specified by:
readDouble
in interfaceDataReader
- Throws:
java.io.IOException
-
readInt
public int readInt() throws java.io.IOException
- Specified by:
readInt
in interfaceDataReader
- Throws:
java.io.IOException
-
readUTF
public java.lang.String readUTF() throws java.io.IOException
- Specified by:
readUTF
in interfaceDataReader
- Throws:
java.io.IOException
-
-