Package i2p.susi.util
Class OutputStreamBuffer
java.lang.Object
i2p.susi.util.OutputStreamBuffer
- All Implemented Interfaces:
Buffer
public class OutputStreamBuffer extends Object implements Buffer
Output only. Input unsupported.
- Since:
- 0.9.34
-
Constructor Summary
Constructors Constructor Description OutputStreamBuffer(OutputStream out)
-
Method Summary
Modifier and Type Method Description InputStream
getInputStream()
int
getLength()
int
getOffset()
OutputStream
getOutputStream()
void
readComplete(boolean success)
Does nothingString
toString()
void
writeComplete(boolean success)
Closes the output stream
-
Constructor Details
-
Method Details
-
getInputStream
- Specified by:
getInputStream
in interfaceBuffer
- Throws:
UnsupportedOperationException
-
getOutputStream
- Specified by:
getOutputStream
in interfaceBuffer
- Returns:
- new OutputStreamOutputStream
-
readComplete
public void readComplete(boolean success)Does nothing- Specified by:
readComplete
in interfaceBuffer
-
writeComplete
public void writeComplete(boolean success)Closes the output stream- Specified by:
writeComplete
in interfaceBuffer
- Parameters:
success
- if false, deletes any resources
-
getLength
public int getLength() -
getOffset
public int getOffset() -
toString
-