org.openrdf.http.object.util
Class ErrorReadableByteChannel
java.lang.Object
org.openrdf.http.object.util.ErrorReadableByteChannel
- All Implemented Interfaces:
- Closeable, Channel, ReadableByteChannel
public class ErrorReadableByteChannel
- extends Object
- implements ReadableByteChannel
Pipes the data and error messages of an OuputStream as an InputStream.
- Author:
- James Leigh
ErrorReadableByteChannel
public ErrorReadableByteChannel(Pipe pipe)
throws IOException
- Throws:
IOException
error
public void error(IOException e)
isOpen
public boolean isOpen()
- Specified by:
isOpen in interface Channel
read
public int read(ByteBuffer dst)
throws IOException
- Specified by:
read in interface ReadableByteChannel
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Specified by:
close in interface Channel
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2004-2010 James Leigh Services Inc.. All Rights Reserved.