org.openrdf.http.object.util
Class ErrorReadableByteChannel

java.lang.Object
  extended by 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

Constructor Summary
ErrorReadableByteChannel(Pipe pipe)
           
 
Method Summary
 void close()
           
 void error(IOException e)
           
 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

ErrorReadableByteChannel

public ErrorReadableByteChannel(Pipe pipe)
                         throws IOException
Throws:
IOException
Method Detail

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.