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 |
|---|---|
IAsync<IOException> |
canStartWriting()
Return a synchronization point that is unblocked when data is ready to be written.
|
default AsyncSupplier<Integer,IOException> |
writeAsync(ByteBuffer buffer)
Equivalent to writeAsync(buffer, null).
|
AsyncSupplier<Integer,IOException> |
writeAsync(ByteBuffer buffer,
Consumer<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.
|
cancelClosed, error, errorCancelled, getPriority, getSourceDescription, getTaskManager, getWrappedIO, setPrioritylockClose, unlockCloseclosecloseAfter, closeAsyncaddCloseListener, addCloseListener, close, isClosed, removeCloseListener, removeCloseListenerIAsync<IOException> canStartWriting()
int writeSync(ByteBuffer buffer) throws IOException
IOExceptionAsyncSupplier<Integer,IOException> writeAsync(ByteBuffer buffer, Consumer<Pair<Integer,IOException>> ondone)
default AsyncSupplier<Integer,IOException> writeAsync(ByteBuffer buffer)
writeAsync in interface IO.WriterAsyncCopyright © 2019. All rights reserved.