public class NullChannel extends Object implements WritableByteChannel, ReadableByteChannel
| Constructor and Description |
|---|
NullChannel() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
int |
read(ByteBuffer dst) |
int |
write(ByteBuffer buffer) |
public int write(ByteBuffer buffer) throws IOException
write in interface WritableByteChannelIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionpublic int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelIOExceptionCopyright © 2001-2016 JRuby. All Rights Reserved.