Package net.sansa_stack.nio.util
Interface ReadableByteChannelDecorator
-
- All Superinterfaces:
AutoCloseable
,Channel
,Closeable
,ReadableByteChannel
- All Known Implementing Classes:
ReadableByteChannelDecoratorBase
,ReadableByteChannelWithConditionalBound
public interface ReadableByteChannelDecorator extends ReadableByteChannel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
close()
ReadableByteChannel
getDelegate()
default boolean
isOpen()
default int
read(ByteBuffer byteBuffer)
-
-
-
Method Detail
-
getDelegate
ReadableByteChannel getDelegate()
-
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 byteBuffer) throws IOException
- Specified by:
read
in interfaceReadableByteChannel
- Throws:
IOException
-
-