|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.SequenceInputStream
Converts a sequence of input streams into an InputStream.
| Constructor Summary | |
SequenceInputStream(Enumeration e)
Constructs a new SequenceInputStream initialized to the specified list. |
|
SequenceInputStream(InputStream s1,
InputStream s2)
Constructs a new SequenceInputStream initialized to the two specified input streams. |
|
| Method Summary | |
void |
close()
Closes the input stream; flipping to the next stream, if an EOF is reached. |
int |
read()
Reads a stream, and upon reaching an EOF, flips to the next stream. |
int |
read(byte[] buf,
int pos,
int len)
Reads data into an array of bytes, and upon reaching an EOF, flips to the next stream. |
| Methods inherited from class java.io.InputStream |
available, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SequenceInputStream(Enumeration e)
e - the list
public SequenceInputStream(InputStream s1,
InputStream s2)
s1 - the first input streams2 - the second input stream| Method Detail |
public int read()
throws IOException
read in class InputStreamIOException - If an I/O error has occurred.
public int read(byte[] buf,
int pos,
int len)
throws IOException
read in class InputStreambuf - the buffer into which the data is readpos - the start position of the datalen - the maximum number of bytes read
IOException - If an I/O error has occurred.
public void close()
throws IOException
close in class InputStreamIOException - If an I/O error has occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||