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.FilterInputStreampublic int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(@NonNull
byte[] buffer,
int byteOffset,
int byteCount)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long byteCount)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOException