Package net.sansa_stack.nio.util
Interface SeekableByteChannelDecorator
-
- All Superinterfaces:
AutoCloseable
,ByteChannel
,Channel
,Closeable
,ReadableByteChannel
,SeekableByteChannel
,WritableByteChannel
- All Known Implementing Classes:
InterruptingSeekableByteChannel
,SeekableByteChannelDecoratorBase
public interface SeekableByteChannelDecorator extends SeekableByteChannel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
close()
SeekableByteChannel
getDecoratee()
default boolean
isOpen()
default long
position()
default SeekableByteChannel
position(long newPosition)
default int
read(ByteBuffer dst)
default long
size()
default SeekableByteChannel
truncate(long size)
default int
write(ByteBuffer src)
-
-
-
Method Detail
-
getDecoratee
SeekableByteChannel getDecoratee()
-
position
default SeekableByteChannel position(long newPosition) throws IOException
- Specified by:
position
in interfaceSeekableByteChannel
- Throws:
IOException
-
position
default long position() throws IOException
- Specified by:
position
in interfaceSeekableByteChannel
- Throws:
IOException
-
close
default void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
read
default int read(ByteBuffer dst) throws IOException
- Specified by:
read
in interfaceReadableByteChannel
- Specified by:
read
in interfaceSeekableByteChannel
- Throws:
IOException
-
write
default int write(ByteBuffer src) throws IOException
- Specified by:
write
in interfaceSeekableByteChannel
- Specified by:
write
in interfaceWritableByteChannel
- Throws:
IOException
-
size
default long size() throws IOException
- Specified by:
size
in interfaceSeekableByteChannel
- Throws:
IOException
-
truncate
default SeekableByteChannel truncate(long size) throws IOException
- Specified by:
truncate
in interfaceSeekableByteChannel
- Throws:
IOException
-
-