org.openrdf.http.object.util
Class AutoCloseChannel

java.lang.Object
  extended by org.openrdf.http.object.util.AutoCloseChannel
All Implemented Interfaces:
Closeable, Channel, ReadableByteChannel

public class AutoCloseChannel
extends Object
implements ReadableByteChannel


Constructor Summary
AutoCloseChannel(ReadableByteChannel delegate)
           
 
Method Summary
 void close()
           
 boolean isOpen()
           
 int read(ByteBuffer dst)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AutoCloseChannel

public AutoCloseChannel(ReadableByteChannel delegate)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

isOpen

public boolean isOpen()
Specified by:
isOpen in interface Channel

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in interface Channel
Throws:
IOException

read

public final int read(ByteBuffer dst)
               throws IOException
Specified by:
read in interface ReadableByteChannel
Throws:
IOException


Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.