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 Buffer
public OutputStream getOutputStream()
getOutputStream
in interface Buffer
IllegalStateException
- alwayspublic void readComplete(boolean success)
readComplete
in interface Buffer
public void writeComplete(boolean success)
writeComplete
in interface Buffer
success
- if false, deletes any resources