com.g11ntoolkit.domutil
Class DOMWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--java.io.PrintWriter
              |
              +--com.g11ntoolkit.domutil.DOMWriter
Direct Known Subclasses:
XMLWriter

public class DOMWriter
extends java.io.PrintWriter

DOM Document writer

Version:
$Revision: 1.3 $ $Date: 2005/07/11 23:13:26 $
Copyright © 2005, webMethods, Inc. All rights reserved.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

See License Agreement.

Author:
Masahiko Mori
See Also:
org.w3c.dom

Field Summary
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
DOMWriter(java.io.OutputStream out)
          Create a new DOMWriter, without automatic line flushing, from an existing OutputStream.
DOMWriter(java.io.OutputStream out, boolean autoFlush)
          Create a new DOMWriter from an existing OutputStream.
DOMWriter(java.io.Writer out)
          Create a new DOMWriter, without automatic line flushing.
DOMWriter(java.io.Writer out, boolean autoFlush)
          Create a new DOMWriter.
 
Method Summary
protected  void write(org.w3c.dom.Attr attr)
          Write out DOM Attribute
protected  void write(org.w3c.dom.CDATASection cdata)
          Write out DOM CDATASection
protected  void write(org.w3c.dom.Comment comment)
          Write out DOM Comment
 void write(org.w3c.dom.Document doc)
          Write out DOM Document
protected  void write(org.w3c.dom.DocumentFragment docflag)
          Write out DOM DocumentFragment
 void write(org.w3c.dom.Document doc, java.lang.String encoding)
          Write out DOM Document with encoding
protected  void write(org.w3c.dom.DocumentType doctype)
          Write out DOM DocumentType
protected  void write(org.w3c.dom.Element elm)
          Write out DOM Element
protected  void write(org.w3c.dom.Entity entity)
          Write out DOM Entity
protected  void write(org.w3c.dom.EntityReference entityref)
          Write out DOM EntityReference
protected  void write(org.w3c.dom.NamedNodeMap nodes)
          Write out DOM NamedNodeMap
 void write(org.w3c.dom.Node node)
          Write out DOM Node
protected  void write(org.w3c.dom.NodeList nodes)
          Write out DOM NodeList
protected  void write(org.w3c.dom.Notation notation)
          Write out DOM Notation
protected  void write(org.w3c.dom.ProcessingInstruction pi)
          Write out DOM ProcessingInstruction
protected  void write(org.w3c.dom.Text text)
          Write out DOM Text
protected  void writeChilden(org.w3c.dom.Node children)
          Write out DOM Childen Nodes
 
Methods inherited from class java.io.PrintWriter
checkError, close, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMWriter

public DOMWriter(java.io.OutputStream out)
Create a new DOMWriter, without automatic line flushing, from an existing OutputStream.

Parameters:
out - A character-output stream

DOMWriter

public DOMWriter(java.io.OutputStream out,
                 boolean autoFlush)
Create a new DOMWriter from an existing OutputStream.

Parameters:
out - A character-output stream
autoFlush - A boolean; if true, the println() methods will flush the output buffer

DOMWriter

public DOMWriter(java.io.Writer out)
Create a new DOMWriter, without automatic line flushing.

Parameters:
out - A character-output stream

DOMWriter

public DOMWriter(java.io.Writer out,
                 boolean autoFlush)
Create a new DOMWriter.

Parameters:
out - A character-output stream
autoFlush - A boolean; if true, the println() methods will flush the output buffer
Method Detail

write

public void write(org.w3c.dom.Document doc,
                  java.lang.String encoding)
Write out DOM Document with encoding

Parameters:
doc - Document class
encoding - Output encoding

write

public void write(org.w3c.dom.Document doc)
Write out DOM Document

Parameters:
doc - Document class

write

public void write(org.w3c.dom.Node node)
Write out DOM Node

Parameters:
node - Node class

write

protected void write(org.w3c.dom.Attr attr)
Write out DOM Attribute

Parameters:
attr - Attribute class

write

protected void write(org.w3c.dom.CDATASection cdata)
Write out DOM CDATASection

Parameters:
cdata - CDATASection class

write

protected void write(org.w3c.dom.Comment comment)
Write out DOM Comment

Parameters:
comment - Comment class

write

protected void write(org.w3c.dom.DocumentFragment docflag)
Write out DOM DocumentFragment

Parameters:
docflag - DocumentFragment class

write

protected void write(org.w3c.dom.DocumentType doctype)
Write out DOM DocumentType

Parameters:
doctype - DocumentType class

write

protected void write(org.w3c.dom.Element elm)
Write out DOM Element

Parameters:
elm - Element class

write

protected void write(org.w3c.dom.Entity entity)
Write out DOM Entity

Parameters:
entity - Entity class

write

protected void write(org.w3c.dom.EntityReference entityref)
Write out DOM EntityReference

Parameters:
entityref - EntityReference class

write

protected void write(org.w3c.dom.NodeList nodes)
Write out DOM NodeList

Parameters:
nodes - NodeList class

write

protected void write(org.w3c.dom.NamedNodeMap nodes)
Write out DOM NamedNodeMap

Parameters:
nodes - NamedNodeMap class

write

protected void write(org.w3c.dom.Notation notation)
Write out DOM Notation

Parameters:
notation - Notation class

write

protected void write(org.w3c.dom.ProcessingInstruction pi)
Write out DOM ProcessingInstruction

Parameters:
pi - ProcessingInstruction class

write

protected void write(org.w3c.dom.Text text)
Write out DOM Text

Parameters:
text - Text class

writeChilden

protected void writeChilden(org.w3c.dom.Node children)
Write out DOM Childen Nodes

Parameters:
children - Node class