All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.Lexical.SequenceReader

java.lang.Object
    |
    +----java.io.Reader
            |
            +----COM.Lexical.SequenceReader

public class SequenceReader
extends java.io.Reader
Allows an application to combine several Readers serially. It is an obvious ommission from JDK1.1

Version:
Authority1.1, 11 Apr 2000

Constructor Index

 o SequenceReader(Enumeration)
Constructs a new SequenceReader initialized to the specified enumeration of Readers.
 o SequenceReader(Reader, Reader)
Constructs a new SequenceReader initialized to read first from the Reader r1, and then from the Reader r2.

Method Index

 o close()
 
 o read(char[], int, int)
 

Constructor Detail

 o SequenceReader
public SequenceReader(java.util.Enumeration e)
          Constructs a new SequenceReader initialized to the specified enumeration of Readers. Each object in the enumeration must be a Reader.
Parameters:
e - an Enumeration of InputStreams.
 o SequenceReader
public SequenceReader(java.io.Reader r1,
                      java.io.Reader r2)
          Constructs a new SequenceReader initialized to read first from the Reader r1, and then from the Reader r2.
Parameters:
r1 - the first Reader to read.
r2 - the second Reader to read.

Method Detail

 o read
public int read(char cbuf[],
                int off,
                int len) throws java.io.IOException
Overrides:
read in class java.io.Reader
 o close
public void close() throws java.io.IOException
Overrides:
close in class java.io.Reader

All Packages  Class Hierarchy  This Package  Previous  Next  Index