Package com.tangosol.util
Class NullImplementation.NullReader
- java.lang.Object
-
- java.io.Reader
-
- com.tangosol.util.NullImplementation.NullReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
- Enclosing class:
- NullImplementation
public static class NullImplementation.NullReader extends Reader
A reader that does basically nothing. Note that multiple instances are required because the API dictates that the close method must cause further invocations to all other methods to throw an IOException.- Author:
- jh 2012.03.28
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidmark(int cb)booleanmarkSupported()intread()intread(char[] ach)intread(char[] cbuf, int off, int len)intread(CharBuffer buf)booleanready()voidreset()longskip(long ch)-
Methods inherited from class java.io.Reader
nullReader, transferTo
-
-
-
-
Method Detail
-
mark
public void mark(int cb) throws IOException- Overrides:
markin classReader- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classReader
-
read
public int read() throws IOException- Overrides:
readin classReader- Throws:
IOException
-
read
public int read(char[] ach) throws IOException- Overrides:
readin classReader- Throws:
IOException
-
read
public int read(char[] cbuf, int off, int len) throws IOException- Specified by:
readin classReader- Throws:
IOException
-
read
public int read(CharBuffer buf) throws IOException
- Specified by:
readin interfaceReadable- Overrides:
readin classReader- Throws:
IOException
-
ready
public boolean ready() throws IOException- Overrides:
readyin classReader- Throws:
IOException
-
reset
public void reset() throws IOException- Overrides:
resetin classReader- Throws:
IOException
-
skip
public long skip(long ch) throws IOException- Overrides:
skipin classReader- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-
-