public class NullInputStream extends it.unimi.dsi.fastutil.io.MeasurableInputStream implements it.unimi.dsi.fastutil.io.RepositionableStream, Serializable
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()
.
Modifier and Type | Method and Description |
---|---|
static NullInputStream |
getInstance()
Returns the only instance of this class.
|
long |
length() |
long |
position() |
void |
position(long position) |
int |
read() |
available, close, mark, markSupported, read, read, reset, skip
public int read()
read
in class InputStream
public static NullInputStream getInstance()
public long length()
length
in interface it.unimi.dsi.fastutil.io.MeasurableStream
public long position()
position
in interface it.unimi.dsi.fastutil.io.MeasurableStream
position
in interface it.unimi.dsi.fastutil.io.RepositionableStream
public void position(long position) throws IOException
position
in interface it.unimi.dsi.fastutil.io.RepositionableStream
IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.