com.koushikdutta.async.stream
Class OutputStreamDataSink
java.lang.Object
com.koushikdutta.async.stream.OutputStreamDataSink
- All Implemented Interfaces:
- DataSink
public class OutputStreamDataSink
- extends java.lang.Object
- implements DataSink
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutputStreamDataSink
public OutputStreamDataSink()
OutputStreamDataSink
public OutputStreamDataSink(java.io.OutputStream stream)
end
public void end()
- Specified by:
end in interface DataSink
setOutputStream
public void setOutputStream(java.io.OutputStream stream)
getOutputStream
public java.io.OutputStream getOutputStream()
write
public void write(java.nio.ByteBuffer bb)
- Specified by:
write in interface DataSink
write
public void write(ByteBufferList bb)
- Specified by:
write in interface DataSink
setWriteableCallback
public void setWriteableCallback(WritableCallback handler)
- Specified by:
setWriteableCallback in interface DataSink
getWriteableCallback
public WritableCallback getWriteableCallback()
- Specified by:
getWriteableCallback in interface DataSink
isOpen
public boolean isOpen()
- Specified by:
isOpen in interface DataSink
close
public void close()
- Specified by:
close in interface DataSink
reportClose
public void reportClose(java.lang.Exception ex)
setClosedCallback
public void setClosedCallback(CompletedCallback handler)
- Specified by:
setClosedCallback in interface DataSink
getClosedCallback
public CompletedCallback getClosedCallback()
- Specified by:
getClosedCallback in interface DataSink
getServer
public AsyncServer getServer()
- Specified by:
getServer in interface DataSink