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, unread
public 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.Closeable
close
in interface java.lang.AutoCloseable
close
in class LineBufferedReader
java.io.IOException
public void markStart() throws java.io.IOException
java.io.IOException
public void resetStart(int pos) throws java.io.IOException
java.io.IOException
public int getByte() throws java.io.IOException
java.io.IOException
public int fill(int len) throws java.io.IOException
LineBufferedReader
read()
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 LineBufferedReader
java.io.IOException
public boolean ready() throws java.io.IOException
ready
in class LineBufferedReader
java.io.IOException