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