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 void
close()
void
mark(int readAheadLimit)
boolean
markSupported()
int
read()
int
read(char[] cbuf)
int
read(char[] cbuf, int off, int len)
int
read(CharBuffer target)
boolean
ready()
void
reset()
long
skip(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classReader
- Throws:
IOException
-
read
public int read(CharBuffer target) throws IOException
- Specified by:
read
in interfaceReadable
- Overrides:
read
in classReader
- Throws:
IOException
-
read
public int read() throws IOException
- Overrides:
read
in classReader
- Throws:
IOException
-
read
public int read(char[] cbuf) 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
-
skip
public long skip(long n) throws IOException
- Overrides:
skip
in classReader
- Throws:
IOException
-
ready
public boolean ready() throws IOException
- Overrides:
ready
in classReader
- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classReader
-
mark
public void mark(int readAheadLimit) throws IOException
- Overrides:
mark
in classReader
- Throws:
IOException
-
reset
public void reset() throws IOException
- Overrides:
reset
in classReader
- Throws:
IOException
-
-