public static class IOFromInputStream.KnownSize extends IOFromInputStream implements IO.KnownSize
IOFromInputStream.KnownSizeIO.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.Seekabledescription, priority| Constructor and Description |
|---|
KnownSize(InputStream stream,
long size,
String sourceDescription,
TaskManager manager,
byte priority)
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.
|
canStartReading, closeResources, closeUnderlyingResources, getInputStream, getTaskManager, getWrappedIO, readAsync, readFullyAsync, readFullySync, readSync, skipAsync, skipSyncgetPriority, getSourceDescription, setPriorityaddCloseListener, 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, removeCloseListenerreadAsync, readFullyAsync, skipAsyncpublic KnownSize(InputStream stream, long size, String sourceDescription, TaskManager manager, byte priority)
public long getSizeSync()
IO.KnownSizegetSizeSync in interface IO.KnownSizepublic AsyncSupplier<Long,IOException> getSizeAsync()
IO.KnownSizegetSizeAsync in interface IO.KnownSizeCopyright © 2019. All rights reserved.