org.openrdf.http.object.readers.base
Class URIListReader<URI>

java.lang.Object
  extended by org.openrdf.http.object.readers.base.URIListReader<URI>
All Implemented Interfaces:
MessageBodyReader<Object>
Direct Known Subclasses:
NetURIReader, RDFObjectURIReader, URIReader, URLReader

public abstract class URIListReader<URI>
extends Object
implements MessageBodyReader<Object>

Parses text/uri-list messages.


Constructor Summary
URIListReader(Class<URI> componentType)
           
 
Method Summary
protected abstract  URI create(ObjectConnection con, String uri)
           
 boolean isReadable(MessageType mtype)
           
 Object readFrom(MessageType mtype, ReadableByteChannel in, Charset charset, String base, String location)
          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

URIListReader

public URIListReader(Class<URI> componentType)
Method Detail

isReadable

public boolean isReadable(MessageType mtype)
Specified by:
isReadable in interface MessageBodyReader<Object>

readFrom

public Object readFrom(MessageType mtype,
                       ReadableByteChannel in,
                       Charset charset,
                       String base,
                       String location)
                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,
                              RepositoryException
Throws:
MalformedURLException
RepositoryException


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