Class NullInputStream

All Implemented Interfaces:
MeasurableStream, RepositionableStream, Closeable, Serializable, AutoCloseable

public class NullInputStream extends MeasurableInputStream implements RepositionableStream, Serializable
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().

Since:
0.8
Author:
Sebastiano Vigna
See Also: