Methods Summary |
---|
public void | flush()Flush bytes to the NonBlockinginputStream
if (outputStream != null) {
outputStream.flush();
}
|
public java.io.InputStream | getInputStream()Return the input stream used by this request. The default stream is an
instance of NonBlockinginputStream
return inputStream;
|
public java.io.OutputStream | getOutputStream()
return (OutputStream)outputStream;
|
public void | recycle()Recycle all streams used by this object.
if (inputStream != null){
flush();
inputStream.close();
}
|
public void | setInputStream(java.io.InputStream inputStream)
this.inputStream = inputStream;
|
public void | setOutputStream(ByteBufferStream outputStream)
this.outputStream = outputStream;
|
public void | write(java.nio.ByteBuffer byteBuffer)Fill the current output stream with the available bytes
outputStream.write(byteBuffer);
|