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, skip
public 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 InputStream
IOException
public int read(byte[] b, int off, int sz) 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 (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.