|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.util.PlainTextByLineStream
public class PlainTextByLineStream
Reads a plain text file and return each line as a String object.
| Constructor Summary | |
|---|---|
PlainTextByLineStream(FileChannel channel,
Charset encoding)
|
|
PlainTextByLineStream(FileChannel channel,
String charsetName)
|
|
PlainTextByLineStream(InputStream in,
Charset charset)
|
|
PlainTextByLineStream(InputStream in,
String charsetName)
|
|
PlainTextByLineStream(Reader in)
Initializes the current instance. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the ObjectStream and releases all allocated
resources. |
String |
read()
Returns the next object. |
void |
reset()
Repositions the stream at the beginning and the previously seen object sequence will be repeated exactly. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlainTextByLineStream(Reader in)
in -
public PlainTextByLineStream(InputStream in,
String charsetName)
throws UnsupportedEncodingException
UnsupportedEncodingException
public PlainTextByLineStream(InputStream in,
Charset charset)
public PlainTextByLineStream(FileChannel channel,
String charsetName)
public PlainTextByLineStream(FileChannel channel,
Charset encoding)
| Method Detail |
|---|
public String read()
throws IOException
ObjectStream
read in interface ObjectStream<String>IOException
public void reset()
throws IOException
ObjectStream
reset in interface ObjectStream<String>IOException
public void close()
throws IOException
ObjectStreamObjectStream and releases all allocated
resources. After close was called its not allowed to call
read or reset.
close in interface ObjectStream<String>IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||