org.openrdf.http.object.readers
Class DocumentFragmentMessageReader

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

public class DocumentFragmentMessageReader
extends Object
implements MessageBodyReader<DocumentFragment>

Parses a DocumentFragment from an InputStream.


Constructor Summary
DocumentFragmentMessageReader()
           
 
Method Summary
 boolean isReadable(MessageType mtype)
           
 DocumentFragment 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

DocumentFragmentMessageReader

public DocumentFragmentMessageReader()
Method Detail

isReadable

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

readFrom

public DocumentFragment readFrom(MessageType mtype,
                                 ReadableByteChannel in,
                                 Charset charset,
                                 String base,
                                 String location)
                          throws ParserConfigurationException,
                                 IOException,
                                 TransformerException
Description copied from interface: MessageBodyReader
Must close InputStream or return an object that will later close the InputStream.

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


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