public abstract class LinkedIO extends ConcurrentCloseable<IOException> implements IO
| Modifier and Type | Class and Description |
|---|---|
static class |
LinkedIO.Readable
Linked Readable IO.
|
static class |
LinkedIO.ReadWrite
Linked Readable and Writable IO.
|
IO.KnownSize, IO.OperationType, IO.OutputToInput, IO.PositionKnown, IO.ReadableByteStream, IO.Resizable, IO.Seekable, IO.Writable, IO.WritableByteStream, IO.WriterAsyncCloseableListenable.Impl| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected int |
ioIndex |
protected ArrayList<IO> |
ios |
protected long |
pos |
protected long |
posInIO |
protected ArrayList<Long> |
sizes |
| Modifier | Constructor and Description |
|---|---|
protected |
LinkedIO(String description,
IO[] ios) |
addCloseListener, addCloseListener, close, closeAsync, isClosed, isClosing, lockClose, operation, operation, removeCloseListener, removeCloseListener, unlockCloseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelClosed, error, errorCancelledlockClose, unlockCloseclosecloseAfter, closeAsyncaddCloseListener, addCloseListener, close, isClosed, removeCloseListener, removeCloseListenerprotected String description
protected int ioIndex
protected long pos
protected long posInIO
public byte getPriority()
ConcurrentCloseablegetPriority in interface IOgetPriority in class ConcurrentCloseable<IOException>public void setPriority(byte priority)
IOsetPriority in interface IOpublic String getSourceDescription()
IOgetSourceDescription in interface IOpublic TaskManager getTaskManager()
IOgetTaskManager in interface IOpublic IO getWrappedIO()
IOgetWrappedIO in interface IOprotected IAsync<IOException> closeUnderlyingResources()
closeUnderlyingResources in class ConcurrentCloseable<IOException>protected void closeResources(Async<IOException> ondone)
closeResources in class ConcurrentCloseable<IOException>protected abstract void nextIOSync()
throws IOException
IOExceptionprotected abstract void previousIOSync()
throws IOException
IOExceptionprotected abstract void nextIOAsync(Runnable ondone, IAsync<IOException> onerror, Consumer rp)
protected abstract void previousIOAsync(Runnable ondone, IAsync<IOException> onerror, Consumer rp)
protected void nextIOSyncStream()
protected void previousIOSyncStream()
protected void nextIOAsyncStream(Runnable ondone)
protected void previousIOAsyncStream(Runnable ondone)
protected void nextIOSyncSeekable()
throws IOException
IOExceptionprotected void previousIOSyncSeekable()
throws IOException
IOExceptionprotected void nextIOAsyncSeekable(Runnable ondone, IAsync<IOException> onerror, Consumer rp)
protected void previousIOAsyncSeekable(Runnable ondone, IAsync<IOException> onerror, Consumer rp)
protected int readSync(ByteBuffer buffer) throws IOException
IOExceptionprotected int readFullySync(ByteBuffer buffer) throws IOException
IOExceptionprotected AsyncSupplier<Integer,IOException> readFullySyncIfPossible(ByteBuffer buffer, Consumer<Pair<Integer,IOException>> ondone)
protected int readAsync()
throws IOException
IOExceptionprotected AsyncSupplier<Integer,IOException> readAsync(ByteBuffer buffer, Consumer<Pair<Integer,IOException>> ondone)
protected AsyncSupplier<Integer,IOException> readFullyAsync(ByteBuffer buffer, Consumer<Pair<Integer,IOException>> ondone)
protected AsyncSupplier<ByteBuffer,IOException> readNextBufferAsync(Consumer<Pair<ByteBuffer,IOException>> ondone)
protected ByteBuffer readNextBuffer() throws IOException
IOExceptionprotected long skipSync(long n)
throws IOException
IOExceptionprotected AsyncSupplier<Long,IOException> skipAsync(long n, Consumer<Pair<Long,IOException>> ondone)
protected int read()
throws IOException
IOExceptionprotected int read(byte[] buf,
int off,
int len)
throws IOException
IOExceptionprotected int readFully(byte[] buffer)
throws IOException
IOExceptionprotected int skip(int n)
throws IOException
IOExceptionprotected IAsync<IOException> canStartReading()
protected IAsync<IOException> canStartWriting()
protected long getSizeSync()
throws IOException
IOExceptionprotected AsyncSupplier<Long,IOException> getSizeAsync()
protected long getPosition()
protected long seekSync(IO.Seekable.SeekType type, long move) throws IOException
IOExceptionprotected AsyncSupplier<Long,IOException> seekAsync(IO.Seekable.SeekType type, long move, Consumer<Pair<Long,IOException>> ondone)
protected int readSync(long pos,
ByteBuffer buffer)
throws IOException
IOExceptionprotected AsyncSupplier<Integer,IOException> readAsync(long pos, ByteBuffer buffer, Consumer<Pair<Integer,IOException>> ondone)
protected int readFullySync(long pos,
ByteBuffer buffer)
throws IOException
IOExceptionprotected AsyncSupplier<Integer,IOException> readFullyAsync(long pos, ByteBuffer buffer, Consumer<Pair<Integer,IOException>> ondone)
protected int writeSync(ByteBuffer buffer) throws IOException
IOExceptionprotected int writeSync(long pos,
ByteBuffer buffer)
throws IOException
IOExceptionprotected AsyncSupplier<Integer,IOException> writeAsync(ByteBuffer buffer, Consumer<Pair<Integer,IOException>> ondone)
protected AsyncSupplier<Integer,IOException> writeAsync(long pos, ByteBuffer buffer, Consumer<Pair<Integer,IOException>> ondone)
Copyright © 2019. All rights reserved.