public class NullReader extends Reader implements Serializable
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()
.
Modifier and Type | Method and Description |
---|---|
void |
close() |
static NullReader |
getInstance()
Returns the only instance of this class.
|
int |
read(char[] cbuf,
int off,
int len) |
public static NullReader getInstance()
public void close()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.