org.openrdf.http.object.readers
Class InputStreamBodyReader

java.lang.Object
  extended by org.openrdf.http.object.readers.InputStreamBodyReader
All Implemented Interfaces:
MessageBodyReader<InputStream>

public class InputStreamBodyReader
extends Object
implements MessageBodyReader<InputStream>

Passes an InputStream through for reading.


Constructor Summary
InputStreamBodyReader()
           
 
Method Summary
 boolean isReadable(Class<?> type, Type genericType, String mediaType, ObjectConnection con)
           
 InputStream readFrom(Class<?> type, Type genericType, String mimeType, ReadableByteChannel in, Charset charset, String base, String location, ObjectConnection con)
          Must close InputStream or return an object that will later close the InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamBodyReader

public InputStreamBodyReader()
Method Detail

isReadable

public boolean isReadable(Class<?> type,
                          Type genericType,
                          String mediaType,
                          ObjectConnection con)
Specified by:
isReadable in interface MessageBodyReader<InputStream>

readFrom

public InputStream readFrom(Class<?> type,
                            Type genericType,
                            String mimeType,
                            ReadableByteChannel in,
                            Charset charset,
                            String base,
                            String location,
                            ObjectConnection con)
                     throws IOException
Description copied from interface: MessageBodyReader
Must close InputStream or return an object that will later close the InputStream.

Specified by:
readFrom in interface MessageBodyReader<InputStream>
Throws:
IOException


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