com.jfx.io
Class InputStreamManager.InputStreamReadableByteChannel

java.lang.Object
  extended by com.jfx.io.InputStreamManager.InputStreamReadableByteChannel
All Implemented Interfaces:
java.io.Closeable, java.nio.channels.Channel, java.nio.channels.ReadableByteChannel
Enclosing class:
InputStreamManager

protected static class InputStreamManager.InputStreamReadableByteChannel
extends java.lang.Object
implements java.nio.channels.ReadableByteChannel


Constructor Summary
InputStreamManager.InputStreamReadableByteChannel(java.io.InputStream is)
           
 
Method Summary
 void close()
           
 java.io.InputStream getIs()
           
 boolean isOpen()
           
 int read(java.nio.ByteBuffer dst)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamManager.InputStreamReadableByteChannel

public InputStreamManager.InputStreamReadableByteChannel(java.io.InputStream is)
Method Detail

getIs

public java.io.InputStream getIs()

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

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

isOpen

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


Copyright © 2008-2009 Roman Gerasimenko.