org.openrdf.http.object.util
Class AutoCloseChannel
java.lang.Object
org.openrdf.http.object.util.AutoCloseChannel
- All Implemented Interfaces:
- Closeable, Channel, ReadableByteChannel
public class AutoCloseChannel
- extends Object
- implements ReadableByteChannel
AutoCloseChannel
public AutoCloseChannel(ReadableByteChannel delegate)
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.