public class ReadAllStream extends InputStream
| Constructor and Description |
|---|
ReadAllStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int sz) |
void |
readAll(InputStream in,
long inMemory)
Reads the data from input stream completely.
|
available, mark, markSupported, read, reset, skippublic void readAll(InputStream in, long inMemory) throws IOException
in - from which to be readinMemory - this much data is kept in the memoryIOException - in case of exceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int sz)
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.