|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.jboss.util.stream.NullInputStream
public final class 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()
available
in class InputStream
public void mark(int readLimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public void reset()
reset
in class InputStream
public void close()
close
in interface Closeable
close
in class InputStream
public int read()
read
in class InputStream
public int read(byte[] bytes, int offset, int length)
read
in class InputStream
public int read(byte[] bytes)
read
in class InputStream
public long skip(long n)
skip
in class InputStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |