public class ResponseInputStream extends Object
Constructor and Description |
---|
ResponseInputStream(InputStream in)
Constructor.
|
Modifier and Type | Method and 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 JBoss by Red Hat. All rights reserved.