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 WritableByteChannel
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
IOException
public int read(ByteBuffer dst) throws IOException
read
in interface ReadableByteChannel
IOException
Copyright © 2001-2016 JRuby. All Rights Reserved.