Package org.xnio.conduits
Class ConduitReadableByteChannel
java.lang.Object
org.xnio.conduits.ConduitReadableByteChannel
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,ReadableByteChannel
A byte channel which wraps a conduit.
- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance. -
Method Summary
-
Constructor Details
-
ConduitReadableByteChannel
Construct a new instance.- Parameters:
conduit
- the conduit to delegate to
-
-
Method Details
-
read
- Specified by:
read
in interfaceReadableByteChannel
- Throws:
IOException
-
isOpen
public boolean isOpen() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-