Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.common.xmap
Class DOMSerializer

java.lang.Object
  extended by org.nuxeo.common.xmap.DOMSerializer

public final class DOMSerializer
extends Object

Author:
Bogdan Stefanescu

Method Summary
static DocumentBuilderFactory getBuilderFactory()
           
static DocumentFragment getContentAsFragment(Element element)
           
static String toString(Document doc)
           
static String toString(DocumentFragment fragment)
           
static String toString(DocumentFragment fragment, org.apache.xml.serialize.OutputFormat format)
           
static String toString(Document doc, org.apache.xml.serialize.OutputFormat format)
           
static String toString(Element element)
           
static String toString(Element element, org.apache.xml.serialize.OutputFormat format)
           
static String toStringOmitXml(Element element)
           
static void write(DocumentFragment fragment, org.apache.xml.serialize.OutputFormat format, OutputStream out)
           
static void write(DocumentFragment fragment, OutputStream out)
           
static void write(Document doc, org.apache.xml.serialize.OutputFormat format, OutputStream out)
           
static void write(Document doc, OutputStream out)
           
static void write(Element element, org.apache.xml.serialize.OutputFormat format, OutputStream out)
           
static void write(Element element, OutputStream out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBuilderFactory

public static DocumentBuilderFactory getBuilderFactory()
Returns:
the builderFactory

toString

public static String toString(Element element)
                       throws IOException
Throws:
IOException

toStringOmitXml

public static String toStringOmitXml(Element element)
                              throws IOException
Throws:
IOException

toString

public static String toString(Element element,
                              org.apache.xml.serialize.OutputFormat format)
                       throws IOException
Throws:
IOException

toString

public static String toString(DocumentFragment fragment)
                       throws IOException
Throws:
IOException

toString

public static String toString(DocumentFragment fragment,
                              org.apache.xml.serialize.OutputFormat format)
                       throws IOException
Throws:
IOException

toString

public static String toString(Document doc)
                       throws IOException
Throws:
IOException

toString

public static String toString(Document doc,
                              org.apache.xml.serialize.OutputFormat format)
                       throws IOException
Throws:
IOException

write

public static void write(Element element,
                         OutputStream out)
                  throws IOException
Throws:
IOException

write

public static void write(Element element,
                         org.apache.xml.serialize.OutputFormat format,
                         OutputStream out)
                  throws IOException
Throws:
IOException

write

public static void write(DocumentFragment fragment,
                         OutputStream out)
                  throws IOException
Throws:
IOException

write

public static void write(DocumentFragment fragment,
                         org.apache.xml.serialize.OutputFormat format,
                         OutputStream out)
                  throws IOException
Throws:
IOException

write

public static void write(Document doc,
                         OutputStream out)
                  throws IOException
Throws:
IOException

write

public static void write(Document doc,
                         org.apache.xml.serialize.OutputFormat format,
                         OutputStream out)
                  throws IOException
Throws:
IOException

getContentAsFragment

public static DocumentFragment getContentAsFragment(Element element)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.