Class DelegatingReader
- java.lang.Object
-
- java.io.Reader
-
- org.apache.johnzon.mapper.internal.DelegatingReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
public class DelegatingReader extends Reader
-
-
Constructor Summary
Constructors Constructor Description DelegatingReader(Reader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidmark(int readAheadLimit)booleanmarkSupported()intread()intread(char[] cbuf)intread(char[] cbuf, int off, int len)intread(CharBuffer target)booleanready()voidreset()longskip(long n)-
Methods inherited from class java.io.Reader
nullReader, transferTo
-
-
-
-
Field Detail
-
reader
private final Reader reader
-
-
Constructor Detail
-
DelegatingReader
public DelegatingReader(Reader reader)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-
read
public int read(CharBuffer target) throws IOException
- Specified by:
readin interfaceReadable- Overrides:
readin classReader- Throws:
IOException
-
read
public int read() throws IOException- Overrides:
readin classReader- Throws:
IOException
-
read
public int read(char[] cbuf) 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
-
skip
public long skip(long n) throws IOException- Overrides:
skipin classReader- Throws:
IOException
-
ready
public boolean ready() throws IOException- Overrides:
readyin classReader- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classReader
-
mark
public void mark(int readAheadLimit) throws IOException- Overrides:
markin classReader- Throws:
IOException
-
reset
public void reset() throws IOException- Overrides:
resetin classReader- Throws:
IOException
-
-