org.equanda.util.xml
Class XMLSerializer

java.lang.Object
  extended by org.equanda.util.xml.XMLSerializer

public class XMLSerializer
extends Object

An XMLSerializer, used to serialize a DOM tree simplistic version which does not allow output formatting. The serializer supresses redundant namespace declarations.

Author:
Joachim Van der Auwera

Field Summary
protected  Writer writer
           
 
Constructor Summary
XMLSerializer(Writer writer)
          Constructs a new serializer that writes to the specified writer.
 
Method Summary
 void serialize(Document document)
           
 void serialize(Element element)
           
 void serialize(Element element, Map namespaces)
           
 void serialize(Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

protected Writer writer
Constructor Detail

XMLSerializer

public XMLSerializer(Writer writer)
Constructs a new serializer that writes to the specified writer.

Parameters:
writer - The writer to use
Method Detail

serialize

public void serialize(Document document)
               throws IOException
Throws:
IOException

serialize

public void serialize(Node node)
               throws IOException
Throws:
IOException

serialize

public void serialize(Element element)
               throws IOException
Throws:
IOException

serialize

public void serialize(Element element,
                      Map namespaces)
               throws IOException
Throws:
IOException


Copyright © 2007-2009. All Rights Reserved.