public class ResponseInputStream extends Object
| Constructor | Description |
|---|---|
ResponseInputStream(InputStream in) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
available() |
How much buffered data do we have?
|
ByteArray |
readResponse() |
Read a Response from the InputStream.
|
ByteArray |
readResponse(ByteArray ba) |
Read a Response from the InputStream.
|
public ResponseInputStream(InputStream in)
in - the InputStream to wrappublic ByteArray readResponse() throws IOException
IOException - for I/O errorspublic ByteArray readResponse(ByteArray ba) throws IOException
ba - the ByteArray in which to store the response, or nullIOException - for I/O errorspublic int available()
throws IOException
IOException - if the stream has been closedCopyright © 2018 Oracle. All rights reserved.