public static class LinkedIO.Readable.Seekable extends LinkedIO.Readable implements IO.Readable.Seekable
| Modifier and Type | Class and Description |
|---|---|
static class |
LinkedIO.Readable.Seekable.Buffered
Linked Readable, Seekable and Buffered IO.
|
static class |
LinkedIO.Readable.Seekable.DeterminedSize
Add the DeterminedSize capability.
|
LinkedIO.Readable.SeekableLinkedIO.Readable, LinkedIO.ReadWriteIO.Readable.SeekableIO.Seekable.SeekTypeIO.KnownSize, IO.OperationType, IO.OutputToInput, IO.PositionKnown, IO.Readable, IO.ReadableByteStream, IO.Resizable, IO.Writable, IO.WritableByteStream, IO.WriterAsyncCloseableListenable.Impl| Constructor and Description |
|---|
Seekable(String description,
IO.Readable.Seekable... ios)
Constructor.
|
canStartReading, readAsync, readFullyAsync, readFullySync, readSync, skipAsync, skipSynccanStartWriting, closeResources, closeUnderlyingResources, getPriority, getSizeAsync, getSizeSync, getSourceDescription, getTaskManager, getWrappedIO, nextIOAsyncSeekable, nextIOAsyncStream, nextIOSyncSeekable, nextIOSyncStream, previousIOAsyncSeekable, previousIOAsyncStream, previousIOSyncSeekable, previousIOSyncStream, read, read, readAsync, readFully, readFullySyncIfPossible, readNextBuffer, readNextBufferAsync, setPriority, skip, writeAsync, writeAsync, writeSync, writeSyncaddCloseListener, addCloseListener, close, closeAsync, isClosed, isClosing, lockClose, operation, operation, removeCloseListener, removeCloseListener, unlockCloseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAsync, readFullyAsynccanStartReading, readAsync, readAsync, readFullyAsync, readFullyAsync, readFullySync, readSync, skipAsync, skipAsync, skipSyncseekAsynccancelClosed, error, errorCancelled, getPriority, getSourceDescription, getTaskManager, getWrappedIO, setPrioritylockClose, unlockCloseclosecloseAfter, closeAsyncaddCloseListener, addCloseListener, close, isClosed, removeCloseListener, removeCloseListenerpublic Seekable(String description, IO.Readable.Seekable... ios)
protected void nextIOSync()
throws IOException
nextIOSync in class LinkedIO.ReadableIOExceptionprotected void nextIOAsync(Runnable ondone, IAsync<IOException> onerror, Consumer rp)
nextIOAsync in class LinkedIO.Readableprotected void previousIOSync()
throws IOException
previousIOSync in class LinkedIO.ReadableIOExceptionprotected void previousIOAsync(Runnable ondone, IAsync<IOException> onerror, Consumer rp)
previousIOAsync in class LinkedIO.Readablepublic long getPosition()
IO.PositionKnowngetPosition in interface IO.PositionKnowngetPosition in class LinkedIOpublic long seekSync(IO.Seekable.SeekType type, long move) throws IOException
IO.SeekableseekSync in interface IO.SeekableseekSync in class LinkedIOIOExceptionpublic AsyncSupplier<Long,IOException> seekAsync(IO.Seekable.SeekType type, long move, Consumer<Pair<Long,IOException>> ondone)
IO.SeekableseekAsync in interface IO.SeekableseekAsync in class LinkedIOpublic int readSync(long pos,
ByteBuffer buffer)
throws IOException
IO.Readable.SeekableIO.Readable.readSync(ByteBuffer) but read at the given position.
The current position is changed to the given position plus the number of bytes read.readSync in interface IO.Readable.SeekablereadSync in class LinkedIOIOExceptionpublic AsyncSupplier<Integer,IOException> readAsync(long pos, ByteBuffer buffer, Consumer<Pair<Integer,IOException>> ondone)
IO.Readable.SeekableIO.Readable.readAsync(ByteBuffer, Consumer) but read at the given position.
The current position is changed to the given position plus the number of bytes read upon completion.readAsync in interface IO.Readable.SeekablereadAsync in class LinkedIOpublic int readFullySync(long pos,
ByteBuffer buffer)
throws IOException
IO.Readable.SeekableIO.Readable.readFullySync(ByteBuffer) but read at the given position.
The current position is changed to the given position plus the number of bytes read.readFullySync in interface IO.Readable.SeekablereadFullySync in class LinkedIOIOExceptionpublic AsyncSupplier<Integer,IOException> readFullyAsync(long pos, ByteBuffer buffer, Consumer<Pair<Integer,IOException>> ondone)
IO.Readable.SeekableIO.Readable.readFullyAsync(ByteBuffer, Consumer) but read at the given position.
The current position is changed to the given position plus the number of bytes read upon completion.readFullyAsync in interface IO.Readable.SeekablereadFullyAsync in class LinkedIOCopyright © 2019. All rights reserved.