public class FixedSizeInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
private long |
myLength |
private java.io.InputStream |
mySource |
| Constructor and Description |
|---|
FixedSizeInputStream(java.io.InputStream source,
long length) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
(package private) static void |
consumeRemaining(java.io.InputStream is) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
public FixedSizeInputStream(java.io.InputStream source,
long length)
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamstatic void consumeRemaining(java.io.InputStream is)
throws java.io.IOException
java.io.IOException