gnu.text
Class QueueReader
java.lang.Object
java.io.Reader
gnu.text.QueueReader
- All Implemented Interfaces:
- java.io.Closeable, java.lang.Appendable, java.lang.Readable
public class QueueReader
- extends java.io.Reader
- implements java.lang.Appendable
An InPort that reads from a queue.
The method append can be used to write chars to the end of the queue.
Fields inherited from class java.io.Reader |
lock |
Methods inherited from class java.io.Reader |
read, read, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueueReader
public QueueReader()
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class java.io.Reader
mark
public void mark(int readAheadLimit)
- Overrides:
mark
in class java.io.Reader
reset
public void reset()
- Overrides:
reset
in class java.io.Reader
append
public QueueReader append(java.lang.CharSequence csq)
- Specified by:
append
in interface java.lang.Appendable
append
public QueueReader append(java.lang.CharSequence csq,
int start,
int end)
- Specified by:
append
in interface java.lang.Appendable
append
public void append(char[] chars)
append
public void append(char[] chars,
int off,
int len)
append
public QueueReader append(char ch)
- Specified by:
append
in interface java.lang.Appendable
appendEOF
public void appendEOF()
- For the writer to signal that there is no more data to append.
reserveSpace
protected void reserveSpace(int len)
ready
public boolean ready()
- Overrides:
ready
in class java.io.Reader
read
public int read()
- Overrides:
read
in class java.io.Reader
read
public int read(char[] cbuf,
int off,
int len)
- Specified by:
read
in class java.io.Reader
close
public void close()
- Specified by:
close
in interface java.io.Closeable
- Specified by:
close
in class java.io.Reader