net.sourceforge.jsxe.dom
Class DOMSerializer

java.lang.Object
  extended bynet.sourceforge.jsxe.dom.DOMSerializer
All Implemented Interfaces:
org.w3c.dom.ls.LSSerializer

public class DOMSerializer
extends Object
implements org.w3c.dom.ls.LSSerializer

An implementation of the DOM3 LSSerializer interface. This class supports everything that is supported by the DOMSerializerConfiguration class. Clients can check if a feature is supported by calling canSetParameter() on the appropriate DOMSerializerConfiguration object.

Version:
$Id: DOMSerializer.java,v 1.50 2006/04/18 21:45:20 ian_lewis Exp $
Author:
Ian Lewis

Constructor Summary
DOMSerializer()
          Creates a default DOMSerializer using the default options.
DOMSerializer(DOMSerializerConfiguration config)
          Creates a DOMSerializer that uses the configuration specified.
 
Method Summary
 DOMConfiguration getDomConfig()
           
 org.w3c.dom.ls.LSSerializerFilter getFilter()
           
 String getNewLine()
           
 void setFilter(org.w3c.dom.ls.LSSerializerFilter filter)
           
 void setNewLine(String newLine)
           
 boolean write(org.w3c.dom.Node nodeArg, org.w3c.dom.ls.LSOutput destination)
           
 String writeToString(org.w3c.dom.Node nodeArg)
           
 boolean writeToURI(org.w3c.dom.Node nodeArg, String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMSerializer

public DOMSerializer()
Creates a default DOMSerializer using the default options.


DOMSerializer

public DOMSerializer(DOMSerializerConfiguration config)
Creates a DOMSerializer that uses the configuration specified.

Parameters:
config - The configuration to be used by this DOMSerializer object
Method Detail

getDomConfig

public DOMConfiguration getDomConfig()
Specified by:
getDomConfig in interface org.w3c.dom.ls.LSSerializer

getFilter

public org.w3c.dom.ls.LSSerializerFilter getFilter()
Specified by:
getFilter in interface org.w3c.dom.ls.LSSerializer

getNewLine

public String getNewLine()
Specified by:
getNewLine in interface org.w3c.dom.ls.LSSerializer

setFilter

public void setFilter(org.w3c.dom.ls.LSSerializerFilter filter)
Specified by:
setFilter in interface org.w3c.dom.ls.LSSerializer

setNewLine

public void setNewLine(String newLine)
Specified by:
setNewLine in interface org.w3c.dom.ls.LSSerializer

write

public boolean write(org.w3c.dom.Node nodeArg,
                     org.w3c.dom.ls.LSOutput destination)
Specified by:
write in interface org.w3c.dom.ls.LSSerializer

writeToString

public String writeToString(org.w3c.dom.Node nodeArg)
                     throws org.w3c.dom.DOMException
Specified by:
writeToString in interface org.w3c.dom.ls.LSSerializer
Throws:
org.w3c.dom.DOMException

writeToURI

public boolean writeToURI(org.w3c.dom.Node nodeArg,
                          String uri)
Specified by:
writeToURI in interface org.w3c.dom.ls.LSSerializer