public class ObservableReader extends java.io.Reader
Constructor and Description |
---|
ObservableReader(java.io.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(java.io.Reader wrappedReader)
public int read(char[] cbuf, int off, int len) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Reader
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public int read(char[] cbuf) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.Reader
java.io.IOException
public boolean ready() throws java.io.IOException
ready
in class java.io.Reader
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.Reader
public void mark(int readAheadLimit) throws java.io.IOException
mark
in class java.io.Reader
java.io.IOException
public void reset() throws java.io.IOException
reset
in class java.io.Reader
java.io.IOException
public void addReaderListener(ReaderListener readerListener)
readerListener
- a reader listener.public void removeReaderListener(ReaderListener readerListener)
readerListener
- a reader listener.