public class TextStreamInput extends java.lang.Object implements Input<java.lang.String>
BufferedReader| Constructor and Description |
|---|
TextStreamInput(java.io.InputStream input) |
TextStreamInput(java.io.InputStream input,
int buffSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.lang.String |
get()
Get next item
|
int |
get(java.util.List<java.lang.String> buffer,
int limit)
Get some lines
|
void |
reset()
Most probably will cause an IOException
|
long |
skip(long count)
Skips characters instead of lines
|
public TextStreamInput(java.io.InputStream input)
public TextStreamInput(java.io.InputStream input,
int buffSize)
public java.lang.String get()
throws java.io.EOFException,
java.io.IOException
Inputpublic int get(java.util.List<java.lang.String> buffer,
int limit)
throws java.io.IOException
get in interface Input<java.lang.String>buffer - buffer for the text lineslimit - max count of the text lines to put into the bufferjava.io.EOFException - if no item available morejava.io.IOException - if failed to get some-whypublic long skip(long count)
throws java.io.IOException
public void reset()
throws java.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException