Package org.aksw.commons.io.util.channel
Interface SeekableByteChannelDecorator
- All Superinterfaces:
AutoCloseable,ByteChannel,Channel,Closeable,ReadableByteChannel,SeekableByteChannel,WritableByteChannel
- All Known Implementing Classes:
InterruptingSeekableByteChannel,SeekableByteChannelDecoratorBase,SeekableByteChannelWithCloseShield
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()default booleanisOpen()default longposition()default SeekableByteChannelposition(long newPosition) default intread(ByteBuffer dst) default longsize()default SeekableByteChanneltruncate(long size) default intwrite(ByteBuffer src)
-
Method Details
-
getDecoratee
SeekableByteChannel getDecoratee() -
position
- Specified by:
positionin interfaceSeekableByteChannel- Throws:
IOException
-
position
- Specified by:
positionin interfaceSeekableByteChannel- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
read
- Specified by:
readin interfaceReadableByteChannel- Specified by:
readin interfaceSeekableByteChannel- Throws:
IOException
-
write
- Specified by:
writein interfaceSeekableByteChannel- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
isOpen
default boolean isOpen() -
size
- Specified by:
sizein interfaceSeekableByteChannel- Throws:
IOException
-
truncate
- Specified by:
truncatein interfaceSeekableByteChannel- Throws:
IOException
-