yarfraw.utils
Class DOMSerializer

java.lang.Object
  extended by yarfraw.utils.DOMSerializer

public class DOMSerializer
extends Object


Constructor Summary
DOMSerializer()
           
 
Method Summary
 void serialize(Document doc, File file)
           
 void serialize(Document doc, OutputStream out)
           
 void serialize(Document doc, Writer writer)
           
 void serializeNode(Node node, Writer writer, String indentLevel)
           
 void setEncoding(String encoding)
           
 void setIndent(int numSpaces)
           
 void setLineSeparator(String lineSeparator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMSerializer

public DOMSerializer()
Method Detail

setLineSeparator

public void setLineSeparator(String lineSeparator)

setEncoding

public void setEncoding(String encoding)

setIndent

public void setIndent(int numSpaces)

serialize

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

serialize

public void serialize(Document doc,
                      File file)
               throws IOException
Throws:
IOException

serialize

public void serialize(Document doc,
                      Writer writer)
               throws IOException
Throws:
IOException

serializeNode

public void serializeNode(Node node,
                          Writer writer,
                          String indentLevel)
                   throws IOException
Throws:
IOException


Copyright © 2008. All Rights Reserved.