org.openrdf.server.metadata.readers
Class URLReader

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

public class URLReader
extends Object
implements MessageBodyReader<URL>


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

URLReader

public URLReader()
Method Detail

isReadable

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

readFrom

public URL 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<URL>
Throws:
QueryResultParseException
TupleQueryResultHandlerException
IOException
QueryEvaluationException
RepositoryException


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