arom.util
Class SequenceReader
java.lang.Object
|
+--java.io.Reader
|
+--arom.util.SequenceReader
- public class SequenceReader
- extends Reader
A class for reading in a sequence of streams.
- Version:
- 0.1
|
Method Summary |
void |
close()
|
int |
read()
|
int |
read(char[] cbuf,
int off,
int len)
|
boolean |
ready()
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SequenceReader
public SequenceReader(Enumeration seq)
- Constructs a reader which read data from the sequence of readers
seq.
- Parameters:
seq - a sequence of reader objects.
SequenceReader
public SequenceReader(Reader r1,
Reader r2)
- Constructs a reader which read data from the sequence of this two readers.
- Parameters:
r1 - the first reader of the sequence.r2 - the second reader of the sequence.
read
public int read()
throws IOException
- Overrides:
- read in class Reader
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
- Overrides:
- read in class Reader
ready
public boolean ready()
throws IOException
- Overrides:
- ready in class Reader
close
public void close()
throws IOException
- Overrides:
- close in class Reader