org.openrdf.server.metadata.readers
Class ReadableBodyReader

java.lang.Object
  extended by org.openrdf.server.metadata.readers.ReadableBodyReader
All Implemented Interfaces:
MessageBodyReader<Readable>

public class ReadableBodyReader
extends Object
implements MessageBodyReader<Readable>


Constructor Summary
ReadableBodyReader()
           
 
Method Summary
 boolean isReadable(Class<?> type, Type genericType, String mediaType, ObjectConnection con)
           
 Readable readFrom(Class<?> type, Type genericType, String mimeType, InputStream 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

ReadableBodyReader

public ReadableBodyReader()
Method Detail

isReadable

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

readFrom

public Readable readFrom(Class<?> type,
                         Type genericType,
                         String mimeType,
                         InputStream 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<Readable>
Throws:
IOException


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