Package i2p.susi.util
Class ReadBuffer
- java.lang.Object
-
- i2p.susi.util.ReadBuffer
-
-
Constructor Summary
Constructors Constructor Description ReadBuffer(byte[] content, int offset, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetInputStream()intgetLength()Always validintgetOffset()Always validOutputStreamgetOutputStream()voidreadComplete(boolean success)Does nothingStringtoString()voidwriteComplete(boolean success)Does nothing
-
-
-
Method Detail
-
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStreamin interfaceBuffer- Returns:
- new ByteArrayInputStream over the content
- Since:
- 0.9.34
-
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStreamin interfaceBuffer- Throws:
IllegalStateException- always- Since:
- 0.9.34
-
readComplete
public void readComplete(boolean success)
Does nothing- Specified by:
readCompletein interfaceBuffer- Since:
- 0.9.34
-
writeComplete
public void writeComplete(boolean success)
Does nothing- Specified by:
writeCompletein interfaceBuffer- Parameters:
success- if false, deletes any resources- Since:
- 0.9.34
-
-