|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
things.thinger.io.ChainedInputStream
public class ChainedInputStream
Chain up a set of input streams. This isn't the fastest thing in the world, so use judiciously. The chained streams will be read in turn. NONE WILL BE CLOSED.
Version History
EPG - Initial - 20 FEB 05
| Constructor Summary | |
|---|---|
ChainedInputStream(java.io.InputStream... streams)
Constructor. |
|
| Method Summary | |
|---|---|
int |
available()
Returns the number of characters available for read without blocking. |
void |
close()
Nop |
void |
mark(int readlimit)
Mark does nothing. |
boolean |
markSupported()
Mark does nothing so this will always return false. |
int |
read()
Read a single character. |
void |
reset()
Reset is not supported and will always throw and IOException. |
long |
skip(long n)
Skip is not supported and will always throw an IOException. |
| Methods inherited from class java.io.InputStream |
|---|
read, read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChainedInputStream(java.io.InputStream... streams)
throws java.lang.Exception
streams - The input streams. Each one will be read in turn. Null elements will be ignored, but at least one has to be non-null. They will NOT BE CLOSED.
java.lang.Exception| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOException
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOException
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.InputStream
public void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||