| Constructor and Description |
|---|
OutputStreamBuffer(OutputStream out)Create an OutputStreamBuffer wrapping the given output stream. |
| Modifier and Type | Method and Description |
|---|---|
InputStream | getInputStream()Get an InputStream for reading from this buffer. |
int | getLength()Get the length of data in this buffer. |
int | getOffset()Get the offset into the underlying data. |
OutputStream | getOutputStream()Get an OutputStream for writing to this buffer. |
void | readComplete(boolean success)Does nothing |
String | toString() |
void | writeComplete(boolean success)Close the output stream. |
public OutputStreamBuffer(OutputStream out)
out - the output stream to write topublic InputStream getInputStream()
BuffergetInputStream in interface BufferUnsupportedOperationException - alwayspublic int getLength()
Bufferpublic int getOffset()
Bufferpublic OutputStream getOutputStream()
BuffergetOutputStream in interface Bufferpublic void readComplete(boolean success)
readComplete in interface Buffersuccess - if false, the read is considered failedpublic void writeComplete(boolean success)
writeComplete in interface Buffersuccess - ignored