|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
it.unimi.dsi.fastutil.io.MeasurableInputStream
it.unimi.dsi.mg4j.io.NullInputStream
dsiutils
.
@Deprecated public class NullInputStream
End-of-stream-only input stream.
This stream has length 0, and will always return end-of-file on any read attempt.
This class is a singleton. You cannot create a null input stream,
but you can obtain an instance of this class using getInstance()
.
Method Summary | |
---|---|
static NullInputStream |
getInstance()
Deprecated. Returns the only instance of this class. |
long |
length()
Deprecated. |
long |
position()
Deprecated. |
void |
position(long position)
Deprecated. |
int |
read()
Deprecated. |
Methods inherited from class java.io.InputStream |
---|
available, close, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int read()
read
in class InputStream
public static NullInputStream getInstance()
public long length()
length
in class MeasurableInputStream
public long position()
position
in interface RepositionableStream
position
in class MeasurableInputStream
public void position(long position) throws IOException
position
in interface RepositionableStream
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |