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.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
static void consumeRemaining(java.io.InputStream is) throws java.io.IOException
java.io.IOException