public abstract class MockInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
| Constructor and Description |
|---|
MockInputStream(int l) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
protected abstract void |
fillArray(byte[] data,
int offset,
int l) |
protected abstract int |
oneByte() |
int |
read() |
int |
read(byte[] data,
int offset,
int l) |
long |
skip(long bytesToSkip) |
mark, markSupported, read, resetprotected abstract int oneByte()
protected abstract void fillArray(byte[] data,
int offset,
int l)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] data,
int offset,
int l)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long bytesToSkip)
throws IOException
skip in class InputStreamIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class InputStreampublic int available()
available in class InputStreamMMBase 1.9-SNAPSHOT - ${javadoctimestamp}