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.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 © 2002-2009 JRuby Team. All Rights Reserved.