|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Reader
java.io.BufferedReader
jist.swans.app.io.BufferedReader
public class BufferedReader
A functionally identical port of java.io.BufferedReader, primarily brought into jist.swans.app.io package so that it could be dynamically rewritten.
| Field Summary | |
|---|---|
private char[] |
cb
buffer. |
private static int |
defaultCharBufferSize
buffer size. |
private static int |
defaultExpectedLineLength
expected input line length. |
private Reader |
in
underlying reader. |
private static int |
INVALIDATED
marking constant. |
private int |
markedChar
marking status. |
private boolean |
markedSkipLF
The skipLF flag when the mark was set. |
private int |
nChars
indices. |
private int |
nextChar
indices. |
private int |
readAheadLimit
limit for reading ahead; valid only when markedChar greater than 0. |
private boolean |
skipLF
If the next character is a line feed, skip it. |
private static int |
UNMARKED
marking constant. |
| Fields inherited from class java.io.Reader |
|---|
lock |
| Constructor Summary | |
|---|---|
BufferedReader(Reader in)
|
|
BufferedReader(Reader in,
int sz)
|
|
| Method Summary | |
|---|---|
void |
close()
|
private void |
ensureOpen()
|
private void |
fill()
|
void |
mark(int readAheadLimit)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(char[] cbuf,
int off,
int len)
|
private int |
read1(char[] cbuf,
int off,
int len)
|
java.lang.String |
readLine()
|
(package private) java.lang.String |
readLine(boolean ignoreLF)
|
boolean |
ready()
|
void |
reset()
|
long |
skip(long n)
|
| Methods inherited from class java.io.Reader |
|---|
read, read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Reader in
private char[] cb
private int nChars
private int nextChar
private static final int INVALIDATED
private static final int UNMARKED
private int markedChar
private int readAheadLimit
private boolean skipLF
private boolean markedSkipLF
private static int defaultCharBufferSize
private static int defaultExpectedLineLength
| Constructor Detail |
|---|
public BufferedReader(Reader in,
int sz)
BufferedReaderpublic BufferedReader(Reader in)
BufferedReader| Method Detail |
|---|
private void ensureOpen()
throws java.io.IOException
java.io.IOExceptionBufferedReader
private void fill()
throws java.io.IOException
java.io.IOExceptionBufferedReader
public int read()
throws java.io.IOException,
JistAPI.Continuable
read in class java.io.BufferedReaderjava.io.IOException
JistAPI.ContinuableBufferedReader
private int read1(char[] cbuf,
int off,
int len)
throws java.io.IOException,
JistAPI.Continuable
java.io.IOException
JistAPI.ContinuableBufferedReader
public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException,
JistAPI.Continuable
read in class java.io.BufferedReaderjava.io.IOException
JistAPI.ContinuableBufferedReader
java.lang.String readLine(boolean ignoreLF)
throws java.io.IOException,
JistAPI.Continuable
java.io.IOException
JistAPI.ContinuableBufferedReader
public java.lang.String readLine()
throws java.io.IOException,
JistAPI.Continuable
readLine in class java.io.BufferedReaderjava.io.IOException
JistAPI.ContinuableBufferedReader
public long skip(long n)
throws java.io.IOException,
JistAPI.Continuable
skip in class java.io.BufferedReaderjava.io.IOException
JistAPI.ContinuableBufferedReader
public boolean ready()
throws java.io.IOException,
JistAPI.Continuable
ready in class java.io.BufferedReaderjava.io.IOException
JistAPI.ContinuableBufferedReader
public boolean markSupported()
throws JistAPI.Continuable
markSupported in class java.io.BufferedReaderJistAPI.ContinuableBufferedReader
public void mark(int readAheadLimit)
throws java.io.IOException,
JistAPI.Continuable
mark in class java.io.BufferedReaderjava.io.IOException
JistAPI.ContinuableBufferedReader
public void reset()
throws java.io.IOException,
JistAPI.Continuable
reset in class java.io.BufferedReaderjava.io.IOException
JistAPI.ContinuableBufferedReader
public void close()
throws java.io.IOException,
JistAPI.Continuable
close in interface java.io.Closeableclose in class java.io.BufferedReaderjava.io.IOException
JistAPI.ContinuableBufferedReader
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||