public static class TwoBuffersIO.DeterminedSize extends TwoBuffersIO implements IO.KnownSize
TwoBuffersIO.DeterminedSizeIO.KnownSize, IO.OperationType, IO.OutputToInput, IO.PositionKnown, IO.Readable, IO.ReadableByteStream, IO.Resizable, IO.Seekable, IO.Writable, IO.WritableByteStream, IO.WriterAsyncCloseableListenable.ImplIO.Readable.Buffered, IO.Readable.SeekableIO.Seekable.SeekTypebuf1, buf2, pos| Constructor and Description |
|---|
DeterminedSize(IO.Readable io,
int firstBuffer,
int secondBuffer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AsyncSupplier<Long,IOException> |
getSizeAsync()
Asynchronous operation to get the size of the IO.
|
long |
getSizeSync()
Synchronous operation to get the size of the IO.
|
AsyncSupplier<Long,IOException> |
seekAsync(IO.Seekable.SeekType type,
long move,
Consumer<Pair<Long,IOException>> ondone)
Returns the new position.
|
int |
skip(int skip)
Same as
IO.Readable.skipSync(long) but limited to an integer. |
AsyncSupplier<Long,IOException> |
skipAsync(long n)
Returns the number of bytes skipped.
|
canStartReading, closeResources, closeUnderlyingResources, getPosition, getPriority, getSourceDescription, getTaskManager, getWrappedIO, read, read, readAsync, readAsync, readAsync, readFully, readFullyAsync, readFullyAsync, readFullySync, readFullySync, readFullySyncIfPossible, readNextBuffer, readNextBufferAsync, readSync, readSync, seekSync, setPriority, skipAsync, skipSyncaddCloseListener, addCloseListener, close, closeAsync, isClosed, isClosing, lockClose, operation, operation, removeCloseListener, removeCloseListener, unlockCloseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelClosed, error, errorCancelled, getPriority, getSourceDescription, getTaskManager, getWrappedIO, setPrioritylockClose, unlockCloseclosecloseAfter, closeAsyncaddCloseListener, addCloseListener, close, isClosed, removeCloseListener, removeCloseListenerreadFullySyncIfPossible, readNextBufferAsyncreadBytereadAsync, readFullyAsyncreadAsync, readFullyAsyncseekAsyncpublic DeterminedSize(IO.Readable io, int firstBuffer, int secondBuffer)
public AsyncSupplier<Long,IOException> skipAsync(long n)
IO.ReadableskipAsync in interface IO.Readablepublic int skip(int skip)
IO.ReadableByteStreamIO.Readable.skipSync(long) but limited to an integer.skip in interface IO.ReadableByteStreamskip in class TwoBuffersIOpublic long getSizeSync()
IO.KnownSizegetSizeSync in interface IO.KnownSizegetSizeSync in class TwoBuffersIOpublic AsyncSupplier<Long,IOException> getSizeAsync()
IO.KnownSizegetSizeAsync in interface IO.KnownSizegetSizeAsync in class TwoBuffersIOpublic AsyncSupplier<Long,IOException> seekAsync(IO.Seekable.SeekType type, long move, Consumer<Pair<Long,IOException>> ondone)
IO.SeekableseekAsync in interface IO.SeekableseekAsync in class TwoBuffersIOCopyright © 2019. All rights reserved.