public static class LinkedIO.Readable.Buffered.DeterminedSize extends LinkedIO.Readable.Buffered implements IO.KnownSize
LinkedIO.Readable.Buffered.DeterminedSizeLinkedIO.Readable.Buffered, LinkedIO.Readable.SeekableLinkedIO.ReadableIO.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.Seekable| Constructor and Description |
|---|
DeterminedSize(String description,
IO.Readable.Buffered... ios)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AsyncWork<Long,IOException> |
getSizeAsync()
Asynchronous operation to get the size of the IO.
|
long |
getSizeSync()
Synchronous operation to get the size of the IO.
|
canStartReading, read, read, readAsync, readFully, readNextBufferAsync, skipnextIOAsync, nextIOSync, previousIOAsync, previousIOSync, readAsync, readFullyAsync, readFullySync, readSync, skipAsync, skipSynccanStartWriting, closeResources, closeUnderlyingResources, getPosition, getPriority, getSourceDescription, getTaskManager, getWrappedIO, nextIOAsyncSeekable, nextIOAsyncStream, nextIOSyncSeekable, nextIOSyncStream, previousIOAsyncSeekable, previousIOAsyncStream, previousIOSyncSeekable, previousIOSyncStream, readAsync, readFullyAsync, readFullySync, readSync, seekAsync, seekSync, setPriorityaddCloseListener, addCloseListener, close, closeAsync, isClosed, isClosing, lockClose, operation, operation, removeCloseListener, removeCloseListener, unlockCloseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiterror, getPriority, getSourceDescription, getTaskManager, getWrappedIO, setPrioritylockClose, unlockCloseclosecloseAsyncaddCloseListener, addCloseListener, close, isClosed, removeCloseListener, removeCloseListenerreadNextBufferAsyncreadAsync, readAsync, readFullyAsync, readFullyAsync, readFullySync, readSync, skipAsync, skipAsync, skipSyncreadBytepublic DeterminedSize(String description, IO.Readable.Buffered... ios)
public long getSizeSync()
throws IOException
IO.KnownSizegetSizeSync in interface IO.KnownSizegetSizeSync in class LinkedIOIOExceptionpublic AsyncWork<Long,IOException> getSizeAsync()
IO.KnownSizegetSizeAsync in interface IO.KnownSizegetSizeAsync in class LinkedIOCopyright © 2018. All rights reserved.