public class ObservableReader extends Reader
Constructor and Description |
---|
ObservableReader(Reader wrappedReader) |
Modifier and Type | Method and Description |
---|---|
void |
addReaderListener(ReaderListener readerListener)
Adds a reader listener to this reader that will be notified when
new strings are read.
|
void |
close() |
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(char[] cbuf) |
int |
read(char[] cbuf,
int off,
int len) |
boolean |
ready() |
void |
removeReaderListener(ReaderListener readerListener)
Removes a reader listener from this reader.
|
void |
reset() |
long |
skip(long n) |
public ObservableReader(Reader wrappedReader)
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
public int read() throws IOException
read
in class Reader
IOException
public int read(char[] cbuf) throws IOException
read
in class Reader
IOException
public long skip(long n) throws IOException
skip
in class Reader
IOException
public boolean ready() throws IOException
ready
in class Reader
IOException
public boolean markSupported()
markSupported
in class Reader
public void mark(int readAheadLimit) throws IOException
mark
in class Reader
IOException
public void reset() throws IOException
reset
in class Reader
IOException
public void addReaderListener(ReaderListener readerListener)
readerListener
- a reader listener.public void removeReaderListener(ReaderListener readerListener)
readerListener
- a reader listener.