| Constructor and Description |
|---|
ReadBuffer(byte[] content,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream() |
int |
getLength()
Always valid
|
int |
getOffset()
Always valid
|
OutputStream |
getOutputStream() |
void |
readComplete(boolean success)
Does nothing
|
String |
toString() |
void |
writeComplete(boolean success)
Does nothing
|
public final byte[] content
public final int length
public final int offset
public InputStream getInputStream()
getInputStream in interface Bufferpublic OutputStream getOutputStream()
getOutputStream in interface BufferIllegalStateException - alwayspublic void readComplete(boolean success)
readComplete in interface Bufferpublic void writeComplete(boolean success)
writeComplete in interface Buffersuccess - if false, deletes any resources