Package org.eclipse.aether.named.ipc
Class ByteChannelWrapper
java.lang.Object
org.eclipse.aether.named.ipc.ByteChannelWrapper
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ByteChannel
,Channel
,ReadableByteChannel
,WritableByteChannel
Trivial ByteChannel wrapper to avoid the read/write synchronization which
happens when the channel implements SelectableChannel.
- Since:
- 2.0.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
isOpen()
int
read
(ByteBuffer dst) int
write
(ByteBuffer src)
-
Constructor Details
-
ByteChannelWrapper
-
-
Method Details
-
read
- Specified by:
read
in interfaceReadableByteChannel
- Throws:
IOException
-
write
- Specified by:
write
in interfaceWritableByteChannel
- Throws:
IOException
-
isOpen
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-