public class NullChannel
extends java.lang.Object
implements java.nio.channels.WritableByteChannel, java.nio.channels.ReadableByteChannel
Constructor and Description |
---|
NullChannel() |
public int write(java.nio.ByteBuffer buffer) throws java.io.IOException
write
in interface java.nio.channels.WritableByteChannel
java.io.IOException
public boolean isOpen()
isOpen
in interface java.nio.channels.Channel
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface java.nio.channels.Channel
java.io.IOException
public int read(java.nio.ByteBuffer dst) throws java.io.IOException
read
in interface java.nio.channels.ReadableByteChannel
java.io.IOException
Copyright © 2002-2009 JRuby Team. All Rights Reserved.