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 void
close()
void
mark(int cb)
boolean
markSupported()
int
read()
int
read(char[] ach)
int
read(char[] cbuf, int off, int len)
int
read(CharBuffer buf)
boolean
ready()
void
reset()
long
skip(long ch)
-
Methods inherited from class java.io.Reader
nullReader, transferTo
-
-
-
-
Method Detail
-
mark
public void mark(int cb) throws IOException
- Overrides:
mark
in classReader
- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classReader
-
read
public int read() throws IOException
- Overrides:
read
in classReader
- Throws:
IOException
-
read
public int read(char[] ach) throws IOException
- Overrides:
read
in classReader
- Throws:
IOException
-
read
public int read(char[] cbuf, int off, int len) throws IOException
- Specified by:
read
in classReader
- Throws:
IOException
-
read
public int read(CharBuffer buf) throws IOException
- Specified by:
read
in interfaceReadable
- Overrides:
read
in classReader
- Throws:
IOException
-
ready
public boolean ready() throws IOException
- Overrides:
ready
in classReader
- Throws:
IOException
-
reset
public void reset() throws IOException
- Overrides:
reset
in classReader
- Throws:
IOException
-
skip
public long skip(long ch) throws IOException
- Overrides:
skip
in classReader
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classReader
- Throws:
IOException
-
-