public static interface IO.Writable extends IO, IO.WriterAsync
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IO.Writable.Buffered
Add a flush operation to force writing on the underlying IO.
|
static interface |
IO.Writable.Seekable
Add operations to write at a specific position.
|
IO.KnownSize, IO.OperationType, IO.OutputToInput, IO.PositionKnown, IO.Readable, IO.ReadableByteStream, IO.Resizable, IO.Writable, IO.WritableByteStream, IO.WriterAsyncCloseableListenable.Impl| Modifier and Type | Method and Description |
|---|---|
ISynchronizationPoint<IOException> |
canStartWriting()
Return a synchronization point that is unblocked when data is ready to be written.
|
default AsyncWork<Integer,IOException> |
writeAsync(ByteBuffer buffer)
Equivalent to writeAsync(buffer, null).
|
AsyncWork<Integer,IOException> |
writeAsync(ByteBuffer buffer,
RunnableWithParameter<Pair<Integer,IOException>> ondone)
Write asynchronously all bytes available in the given buffer at the current position.
|
int |
writeSync(ByteBuffer buffer)
Write synchronously all bytes available in the given buffer at the current position.
|
error, getPriority, getSourceDescription, getTaskManager, getWrappedIO, setPrioritylockClose, unlockCloseclosecloseAsyncaddCloseListener, addCloseListener, close, isClosed, removeCloseListener, removeCloseListenerISynchronizationPoint<IOException> canStartWriting()
int writeSync(ByteBuffer buffer) throws IOException
IOExceptionAsyncWork<Integer,IOException> writeAsync(ByteBuffer buffer, RunnableWithParameter<Pair<Integer,IOException>> ondone)
default AsyncWork<Integer,IOException> writeAsync(ByteBuffer buffer)
writeAsync in interface IO.WriterAsyncCopyright © 2017. All rights reserved.