org.openrdf.http.object.writers
Class DOMMessageWriter

java.lang.Object
  extended by org.openrdf.http.object.writers.DOMMessageWriter
All Implemented Interfaces:
MessageBodyWriter<Node>

public class DOMMessageWriter
extends Object
implements MessageBodyWriter<Node>

Prints DOM Node into an OutputStream.


Constructor Summary
DOMMessageWriter()
           
 
Method Summary
 String getContentType(String mimeType, Class<?> type, Type genericType, ObjectFactory of, Charset charset)
           
 long getSize(String mimeType, Class<?> type, Type genericType, ObjectFactory of, Node t, Charset charset)
           
 boolean isText(String mimeType, Class<?> type, Type genericType, ObjectFactory of)
           
 boolean isWriteable(String mediaType, Class<?> type, Type genericType, ObjectFactory of)
           
 ReadableByteChannel write(String mimeType, Class<?> type, Type genericType, ObjectFactory of, Node result, String base, Charset charset)
           
 void writeTo(String mimeType, Class<?> type, Type genericType, ObjectFactory of, Node node, String base, Charset charset, WritableByteChannel out, int bufSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMMessageWriter

public DOMMessageWriter()
                 throws TransformerConfigurationException
Throws:
TransformerConfigurationException
Method Detail

isText

public boolean isText(String mimeType,
                      Class<?> type,
                      Type genericType,
                      ObjectFactory of)
Specified by:
isText in interface MessageBodyWriter<Node>

isWriteable

public boolean isWriteable(String mediaType,
                           Class<?> type,
                           Type genericType,
                           ObjectFactory of)
Specified by:
isWriteable in interface MessageBodyWriter<Node>

getSize

public long getSize(String mimeType,
                    Class<?> type,
                    Type genericType,
                    ObjectFactory of,
                    Node t,
                    Charset charset)
Specified by:
getSize in interface MessageBodyWriter<Node>

getContentType

public String getContentType(String mimeType,
                             Class<?> type,
                             Type genericType,
                             ObjectFactory of,
                             Charset charset)
Specified by:
getContentType in interface MessageBodyWriter<Node>

write

public ReadableByteChannel write(String mimeType,
                                 Class<?> type,
                                 Type genericType,
                                 ObjectFactory of,
                                 Node result,
                                 String base,
                                 Charset charset)
                          throws IOException,
                                 OpenRDFException,
                                 XMLStreamException,
                                 TransformerException,
                                 ParserConfigurationException
Specified by:
write in interface MessageBodyWriter<Node>
Throws:
IOException
OpenRDFException
XMLStreamException
TransformerException
ParserConfigurationException

writeTo

public void writeTo(String mimeType,
                    Class<?> type,
                    Type genericType,
                    ObjectFactory of,
                    Node node,
                    String base,
                    Charset charset,
                    WritableByteChannel out,
                    int bufSize)
             throws IOException,
                    TransformerException,
                    ParserConfigurationException
Throws:
IOException
TransformerException
ParserConfigurationException


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