org.openrdf.server.metadata.readers
Class SetOfRDFObjectReader

java.lang.Object
  extended by org.openrdf.server.metadata.readers.SetOfRDFObjectReader
All Implemented Interfaces:
MessageBodyReader<Set<?>>

public class SetOfRDFObjectReader
extends Object
implements MessageBodyReader<Set<?>>

Reads RDF as a set of RDFObjects (subjects).

Author:
James Leigh

Constructor Summary
SetOfRDFObjectReader()
           
 
Method Summary
 boolean isReadable(Class<?> type, Type genericType, String mediaType, ObjectConnection con)
           
 Set<?> readFrom(Class<?> type, Type genericType, String media, 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

SetOfRDFObjectReader

public SetOfRDFObjectReader()
Method Detail

isReadable

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

readFrom

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

Specified by:
readFrom in interface MessageBodyReader<Set<?>>
Throws:
QueryResultParseException
TupleQueryResultHandlerException
QueryEvaluationException
IOException
RepositoryException


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