Package i2p.susi.util
Class OutputStreamBuffer
- java.lang.Object
-
- i2p.susi.util.OutputStreamBuffer
-
-
Constructor Summary
Constructors Constructor Description OutputStreamBuffer(OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetInputStream()intgetLength()intgetOffset()OutputStreamgetOutputStream()voidreadComplete(boolean success)Does nothingStringtoString()voidwriteComplete(boolean success)Closes the output stream
-
-
-
Constructor Detail
-
OutputStreamBuffer
public OutputStreamBuffer(OutputStream out)
-
-
Method Detail
-
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStreamin interfaceBuffer- Throws:
UnsupportedOperationException
-
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStreamin interfaceBuffer- Returns:
- new OutputStreamOutputStream
-
readComplete
public void readComplete(boolean success)
Does nothing- Specified by:
readCompletein interfaceBuffer
-
writeComplete
public void writeComplete(boolean success)
Closes the output stream- Specified by:
writeCompletein interfaceBuffer- Parameters:
success- if false, deletes any resources
-
-