Class MergedReader

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Readable

    public final class MergedReader
    extends Reader
    Simple 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.