public abstract static class IO.AbstractIO extends Object implements IO
IO.AbstractIO, IO.KnownSize, IO.OperationType, IO.OutputToInput, IO.PositionKnown, IO.Readable, IO.ReadableByteStream, IO.Resizable, IO.Seekable, IO.Writable, IO.WritableByteStream| Constructor and Description |
|---|
AbstractIO() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Synchronous close.
|
ISynchronizationPoint<IOException> |
closeAsync()
Close asynchronously.
|
protected abstract ISynchronizationPoint<IOException> |
closeIO() |
void |
lockClose()
Calling this method avoid the IO to be closed.
|
void |
onclose(Runnable listener)
Add a listener to be called once this IO is closed.
|
void |
unlockClose()
Allow to close this IO, if this is the last lock on it.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiterror, getPriority, getSourceDescription, getTaskManager, getWrappedIO, setPriorityprotected abstract ISynchronizationPoint<IOException> closeIO()
public final void close()
throws IOException
IOclose in interface Closeableclose in interface AutoCloseableclose in interface IOIOExceptionpublic ISynchronizationPoint<IOException> closeAsync()
AsyncCloseablecloseAsync in interface AsyncCloseable<IOException>public void onclose(Runnable listener)
IOpublic void lockClose()
IOpublic void unlockClose()
IOunlockClose in interface IOCopyright © 2017. All rights reserved.