|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream org.jboss.util.stream.NullInputStream
A null InputStream
. Methods that return values,
return values that indicate that there is no more data to be read, other
methods are non-operations.
Field Summary | |
static NullInputStream |
INSTANCE
A default null input stream. |
Constructor Summary | |
NullInputStream()
|
Method Summary | |
int |
available()
Always returns zero. |
void |
close()
Non-operation. |
void |
mark(int readLimit)
Non-operation. |
boolean |
markSupported()
Always returns false. |
int |
read()
Always returns -1. |
int |
read(byte[] bytes)
Always returns -1. |
int |
read(byte[] bytes,
int offset,
int length)
Always returns -1. |
void |
reset()
Non-operation. |
long |
skip(long n)
Always returns zero. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final NullInputStream INSTANCE
Constructor Detail |
public NullInputStream()
Method Detail |
public int available()
public void mark(int readLimit)
public boolean markSupported()
public void reset()
public void close()
public int read()
public int read(byte[] bytes, int offset, int length)
public int read(byte[] bytes)
public long skip(long n)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |