gnu.text

Class QueueReader

public class QueueReader extends Reader

An InPort that reads from a queue. The method append can be used to write chars to the end of the queue.
Constructor Summary
QueueReader()
Method Summary
voidappend(String str)
voidappend(char[] chars)
voidappend(char[] chars, int off, int len)
voidappend(char ch)
voidappendEOF()
For the writer to signal that there is no more data to append.
voidclose()
voidmark(int readAheadLimit)
booleanmarkSupported()
intread()
intread(char[] cbuf, int off, int len)
booleanready()
voidreset()

Constructor Detail

QueueReader

public QueueReader()

Method Detail

append

public void append(String str)

append

public void append(char[] chars)

append

public void append(char[] chars, int off, int len)

append

public void append(char ch)

appendEOF

public void appendEOF()
For the writer to signal that there is no more data to append.

close

public void close()

mark

public void mark(int readAheadLimit)

markSupported

public boolean markSupported()

read

public int read()

read

public int read(char[] cbuf, int off, int len)

ready

public boolean ready()

reset

public void reset()