org.openrdf.server.metadata.readers
Class RDFObjectReader
java.lang.Object
org.openrdf.server.metadata.readers.RDFObjectReader
- All Implemented Interfaces:
- MessageBodyReader<Object>
public class RDFObjectReader
- extends Object
- implements MessageBodyReader<Object>
Reads RDFObjects from an HTTP message body.
- Author:
- James Leigh
|
Method Summary |
boolean |
isReadable(Class<?> type,
Type genericType,
String mediaType,
ObjectConnection con)
|
Object |
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 |
RDFObjectReader
public RDFObjectReader()
isReadable
public boolean isReadable(Class<?> type,
Type genericType,
String mediaType,
ObjectConnection con)
- Specified by:
isReadable in interface MessageBodyReader<Object>
readFrom
public Object readFrom(Class<?> type,
Type genericType,
String media,
InputStream in,
Charset charset,
String base,
String location,
ObjectConnection con)
throws QueryResultParseException,
TupleQueryResultHandlerException,
IOException,
QueryEvaluationException,
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<Object>
- Throws:
QueryResultParseException
TupleQueryResultHandlerException
IOException
QueryEvaluationException
RepositoryException
Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.