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

void
append(String str)
void
append(char ch)
void
append(char[] chars)
void
append(char[] chars, int off, int len)
void
appendEOF()
For the writer to signal that there is no more data to append.
void
close()
void
mark(int readAheadLimit)
boolean
markSupported()
int
read()
int
read(char[] cbuf, int off, int len)
boolean
ready()
void
reset()

Constructor Details

QueueReader

public QueueReader()

Method Details

append

public void append(String str)

append

public void append(char ch)

append

public void append(char[] chars)

append

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

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()