org.openrdf.http.object.readers
Class DOMMessageReader

java.lang.Object
  extended by org.openrdf.http.object.readers.DOMMessageReader
All Implemented Interfaces:
MessageBodyReader<Node>

public class DOMMessageReader
extends Object
implements MessageBodyReader<Node>

Parses a DOM Node from an InputStream.


Constructor Summary
DOMMessageReader()
           
 
Method Summary
 boolean isReadable(Class<?> type, Type genericType, String mediaType, ObjectConnection con)
           
 Node readFrom(Class<?> type, Type genericType, String mimeType, ReadableByteChannel 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

DOMMessageReader

public DOMMessageReader()
Method Detail

isReadable

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

readFrom

public Node readFrom(Class<?> type,
                     Type genericType,
                     String mimeType,
                     ReadableByteChannel in,
                     Charset charset,
                     String base,
                     String location,
                     ObjectConnection con)
              throws TransformerConfigurationException,
                     TransformerException,
                     ParserConfigurationException,
                     IOException
Description copied from interface: MessageBodyReader
Must close InputStream or return an object that will later close the InputStream.

Specified by:
readFrom in interface MessageBodyReader<Node>
Throws:
TransformerConfigurationException
TransformerException
ParserConfigurationException
IOException


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