|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
edu.emory.mathcs.util.io.NullInputStream
Input stream that is always at EOF. Similar to /dev/null. Useful when there is a need to indicate "no data" while the data is expected to have the form of an input stream.
| Constructor Summary | |
NullInputStream()
Creates a new NullInputStream that is always at EOF. |
|
| Method Summary | |
int |
available()
Returns 0. |
int |
read()
Returns -1. |
int |
read(byte[] buf)
Returns -1. |
int |
read(byte[] buf,
int off,
int len)
Returns -1. |
long |
skip(long n)
Returns 0. |
| Methods inherited from class java.io.InputStream |
close, mark, markSupported, reset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.emory.mathcs.util.io.Input |
close, mark, markSupported, reset |
| Constructor Detail |
public NullInputStream()
| Method Detail |
public int read()
read in interface Inputpublic int read(byte[] buf)
read in interface Input
public int read(byte[] buf,
int off,
int len)
read in interface Inputpublic int available()
available in interface Inputpublic long skip(long n)
skip in interface Input
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||