org.jruby.util.io
Class NullChannel

java.lang.Object
  extended by org.jruby.util.io.NullChannel
All Implemented Interfaces:
java.io.Closeable, java.nio.channels.Channel, java.nio.channels.ReadableByteChannel, java.nio.channels.WritableByteChannel

public class NullChannel
extends java.lang.Object
implements java.nio.channels.WritableByteChannel, java.nio.channels.ReadableByteChannel

Author:
headius

Constructor Summary
NullChannel()
           
 
Method Summary
 void close()
           
 boolean isOpen()
           
 int read(java.nio.ByteBuffer dst)
           
 int write(java.nio.ByteBuffer buffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullChannel

public NullChannel()
Method Detail

write

public int write(java.nio.ByteBuffer buffer)
          throws java.io.IOException
Specified by:
write in interface java.nio.channels.WritableByteChannel
Throws:
java.io.IOException

isOpen

public boolean isOpen()
Specified by:
isOpen in interface java.nio.channels.Channel

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in interface java.nio.channels.Channel
Throws:
java.io.IOException

read

public int read(java.nio.ByteBuffer dst)
         throws java.io.IOException
Specified by:
read in interface java.nio.channels.ReadableByteChannel
Throws:
java.io.IOException


Copyright © 2002-2009 JRuby Team. All Rights Reserved.