|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Reader
it.unimi.dsi.mg4j.io.NullReader
dsiutils.
@Deprecated public class NullReader
End-of-stream-only reader.
This reader will always return end-of-file on any read attempt.
This class is a singleton. You cannot create a null reader,
but you can obtain an instance of this class using getInstance().
| Field Summary |
|---|
| Fields inherited from class java.io.Reader |
|---|
lock |
| Method Summary | |
|---|---|
void |
close()
Deprecated. |
static NullReader |
getInstance()
Deprecated. Returns the only instance of this class. |
int |
read(char[] cbuf,
int off,
int len)
Deprecated. |
| Methods inherited from class java.io.Reader |
|---|
mark, markSupported, read, read, read, ready, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static NullReader getInstance()
public void close()
close in interface Closeableclose in class Reader
public int read(char[] cbuf,
int off,
int len)
read in class Reader
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||