org.jruby.util
Class IOChannel.IOReadableWritableByteChannel

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

public static class IOChannel.IOReadableWritableByteChannel
extends IOChannel
implements java.nio.channels.ReadableByteChannel, java.nio.channels.WritableByteChannel


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jruby.util.IOChannel
IOChannel.IOReadableByteChannel, IOChannel.IOReadableWritableByteChannel, IOChannel.IOWritableByteChannel
 
Constructor Summary
IOChannel.IOReadableWritableByteChannel(IRubyObject io)
           
 
Method Summary
 int read(java.nio.ByteBuffer dst)
           
 int write(java.nio.ByteBuffer src)
           
 
Methods inherited from class org.jruby.util.IOChannel
close, initReadSite, initWriteSite, isOpen, read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.nio.channels.Channel
close, isOpen
 

Constructor Detail

IOChannel.IOReadableWritableByteChannel

public IOChannel.IOReadableWritableByteChannel(IRubyObject io)
Method Detail

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

write

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


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