public final class MergedReader extends Reader
Reader
implementation that is used to "unwind" some
data previously read from a Reader; so that as long as some of
that data remains, it's returned; but as long as it's read, we'll
just use data from the underlying original Reader.
This is similar to PushbackReader
, but with this class
there's only one implicit pushback, when instance is constructed; not
general pushback buffer and methods to use it.Constructor and Description |
---|
MergedReader(ReaderConfig cfg,
Reader in,
char[] buf,
int start,
int end) |
public MergedReader(ReaderConfig cfg, Reader in, char[] buf, int start, int end)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
public void mark(int readlimit) throws IOException
mark
in class Reader
IOException
public boolean markSupported()
markSupported
in class Reader
public int read() throws IOException
read
in class Reader
IOException
public int read(char[] cbuf) throws IOException
read
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public boolean ready() throws IOException
ready
in class Reader
IOException
public void reset() throws IOException
reset
in class Reader
IOException
public long skip(long n) throws IOException
skip
in class Reader
IOException
Copyright © 2018 FasterXML. All rights reserved.