public class NetworkInputStream extends InputStream
Constructor and Description |
---|
NetworkInputStream(InputStream stream,
long expectedLength)
Creates a NetworkInputStream and saves its arguments, the input stream and expected length, for later use.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
available, mark, markSupported, read, reset, skip
public NetworkInputStream(InputStream stream, long expectedLength)
stream
- expectedLength
- public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2019. All rights reserved.