Package org.jruby.util.io
Class NullChannel
java.lang.Object
org.jruby.util.io.NullChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,ReadableByteChannel,WritableByteChannel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanisOpen()intread(ByteBuffer dst) intwrite(ByteBuffer buffer)
-
Constructor Details
-
NullChannel
public NullChannel()
-
-
Method Details
-
write
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
isOpen
public boolean isOpen() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
read
- Specified by:
readin interfaceReadableByteChannel- Throws:
IOException
-