public final class

MergedStream

extends InputStream
java.lang.Object
   ↳ java.io.InputStream
     ↳ com.fasterxml.jackson.core.io.MergedStream

Class Overview

Simple InputStream implementation that is used to "unwind" some data previously read from an input stream; 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 stream. This is similar to java.io.PushbackInputStream, but here there's only one implicit pushback, when instance is constructed.

Summary

Fields
protected final IOContext _context
Public Constructors
MergedStream(IOContext context, InputStream in, byte[] buf, int start, int end)
Public Methods
int available()
void close()
void mark(int readlimit)
boolean markSupported()
int read(byte[] b)
int read()
int read(byte[] b, int off, int len)
void reset()
long skip(long n)
[Expand]
Inherited Methods
From class java.io.InputStream
From class java.lang.Object
From interface java.io.Closeable
From interface java.lang.AutoCloseable

Fields

protected final IOContext _context

Public Constructors

public MergedStream (IOContext context, InputStream in, byte[] buf, int start, int end)

Public Methods

public int available ()

Throws
IOException

public void close ()

Throws
IOException

public void mark (int readlimit)

public boolean markSupported ()

public int read (byte[] b)

Throws
IOException

public int read ()

Throws
IOException

public int read (byte[] b, int off, int len)

Throws
IOException

public void reset ()

Throws
IOException

public long skip (long n)

Throws
IOException