|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
things.thinger.io.EmptyInputStream
public class EmptyInputStream
Empty input stream. It will never yield anything.
Version History
EPG - Initial - 12 FEB 07
Constructor Summary | |
---|---|
EmptyInputStream()
|
Method Summary | |
---|---|
int |
available()
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next invocation of a method for this input stream. |
void |
close()
Close the stream. |
int |
read()
Reads the next byte of data from the input stream. |
int |
read(byte[] b)
Reads some number of bytes from the input stream and stores them into the buffer array b. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from the input stream into an array of bytes. |
Methods inherited from class java.io.InputStream |
---|
mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmptyInputStream()
Method Detail |
---|
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
- if an I/O error occurs.public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
b
- the buffer into which the data is read.off
- the start offset in array b at which the data is written.len
- the maximum number of bytes to read.
If
- the first byte cannot be read for any reason other than end of file or if some other I/O error occurs.
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
b
- the buffer into which the data is read.
If
- the first byte cannot be read for any reason other than end of file or if some other I/O error occurs.
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
- All subsequent calls to the reads will result in EOF.public int available() throws java.io.IOException
available
in class java.io.InputStream
IO
- exception
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |