public class MarkEnforcingInputStream
extends java.io.FilterInputStream
InputStreams
from overflowing their buffer by reading data past
their read limit.Constructor and Description |
---|
MarkEnforcingInputStream(java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
mark(int readLimit) |
int |
read() |
int |
read(byte[] buffer,
int byteOffset,
int byteCount) |
void |
reset() |
long |
skip(long byteCount) |
public MarkEnforcingInputStream(@NonNull java.io.InputStream in)
public void mark(int readLimit)
mark
in class java.io.FilterInputStream
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(@NonNull byte[] buffer, int byteOffset, int byteCount) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public void reset() throws java.io.IOException
reset
in class java.io.FilterInputStream
java.io.IOException
public long skip(long byteCount) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.FilterInputStream
java.io.IOException