| Constructor | Description |
|---|---|
MemoryBuffer() |
|
MemoryBuffer(int size) |
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
getContent() |
|
InputStream |
getInputStream() |
|
int |
getLength() |
Current size.
|
int |
getOffset() |
|
OutputStream |
getOutputStream() |
|
void |
readComplete(boolean success) |
Top-level reader MUST call this to close the input stream.
|
String |
toString() |
|
void |
writeComplete(boolean success) |
Deletes the data if success is false
|
public InputStream getInputStream() throws IOException
getInputStream in interface BufferIOExceptionpublic OutputStream getOutputStream()
getOutputStream in interface Bufferpublic void readComplete(boolean success)
BufferreadComplete in interface Bufferpublic void writeComplete(boolean success)
writeComplete in interface Buffersuccess - if false, deletes any resourcespublic byte[] getContent()