org.openrdf.http.object.readers.base
Class URIListReader<URI>
java.lang.Object
org.openrdf.http.object.readers.base.URIListReader<URI>
- All Implemented Interfaces:
- MessageBodyReader<Object>
- Direct Known Subclasses:
- NetURIReader, URIReader, URLReader
public abstract class URIListReader<URI>
- extends Object
- implements MessageBodyReader<Object>
Parses text/uri-list messages.
|
Method Summary |
protected abstract URI |
create(ObjectConnection con,
String uri)
|
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 |
URIListReader
public URIListReader(Class<URI> componentType)
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
create
protected abstract URI create(ObjectConnection con,
String uri)
throws MalformedURLException
- Throws:
MalformedURLException
Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.