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 InputStream
getInputStream()
int
getLength()
int
getOffset()
OutputStream
getOutputStream()
void
readComplete(boolean success)
Does nothingString
toString()
void
writeComplete(boolean success)
Closes the output stream
-
-
-
Constructor Detail
-
OutputStreamBuffer
public OutputStreamBuffer(OutputStream out)
-
-
Method Detail
-
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStream
in interfaceBuffer
- Throws:
UnsupportedOperationException
-
getOutputStream
public OutputStream 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
-
-