public class LineInputStreamReader extends LineBufferedReader
buffer, BUFFER_SIZE, in, limit, lineNumber, markPos, pos, readAheadLimit, readState| Constructor and Description |
|---|
LineInputStreamReader(java.io.InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
fill(int len)
Called by
read() when it needs its buffer filled. |
int |
getByte() |
void |
markStart() |
boolean |
ready() |
void |
resetStart(int pos) |
void |
setCharset(java.nio.charset.Charset cset) |
void |
setCharset(java.lang.String name) |
getColumnNumber, getConvertCR, getLineNumber, getName, getPath, getReadState, incrLineNumber, lineStart, mark, markSupported, peek, read, read, readLine, readLine, reset, setBuffer, setConvertCR, setKeepFullLines, setLineNumber, setName, setPath, skip_quick, skip, skip, skipRestOfLine, unread_quick, unreadpublic void setCharset(java.nio.charset.Charset cset)
public void setCharset(java.lang.String name)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class LineBufferedReaderjava.io.IOExceptionpublic void markStart()
throws java.io.IOException
java.io.IOExceptionpublic void resetStart(int pos)
throws java.io.IOException
java.io.IOExceptionpublic int getByte()
throws java.io.IOException
java.io.IOExceptionpublic int fill(int len)
throws java.io.IOException
LineBufferedReaderread() when it needs its buffer filled.
Read characters into buffer, starting at off, for len.
Can assume that len > 0. Only called if pos>=limit.
Return -1 if EOF, otherwise number of read chars.
This can be usefully overridden by sub-classes.fill in class LineBufferedReaderjava.io.IOExceptionpublic boolean ready()
throws java.io.IOException
ready in class LineBufferedReaderjava.io.IOException