public class NullChannel
extends java.lang.Object
implements java.nio.channels.WritableByteChannel, java.nio.channels.ReadableByteChannel
| Constructor and Description |
|---|
NullChannel() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
int |
read(java.nio.ByteBuffer dst) |
int |
write(java.nio.ByteBuffer buffer) |
public int write(java.nio.ByteBuffer buffer)
throws java.io.IOException
write in interface java.nio.channels.WritableByteChanneljava.io.IOExceptionpublic boolean isOpen()
isOpen in interface java.nio.channels.Channelpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface java.nio.channels.Channeljava.io.IOExceptionpublic int read(java.nio.ByteBuffer dst)
throws java.io.IOException
read in interface java.nio.channels.ReadableByteChanneljava.io.IOExceptionCopyright © 2001-2020 JRuby. All Rights Reserved.