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, skippublic NetworkInputStream(InputStream stream, long expectedLength)
stream - expectedLength - public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2019. All rights reserved.