jimm.twice.xml.dom
Class XMLDecl

java.lang.Object
  extended byjimm.twice.xml.dom.Element
      extended byjimm.twice.xml.dom.NamedElement
          extended byjimm.twice.xml.dom.NamedAttributes
              extended byjimm.twice.xml.dom.XMLDecl

public class XMLDecl
extends NamedAttributes

Only used for the '' processing instruction. Does not write standalone or encoding attributes.

Author:
Jim Menard, jimm@io.com

Field Summary
protected static java.lang.String XML_DECL_STRING
           
 
Fields inherited from class jimm.twice.xml.dom.NamedAttributes
attrs
 
Fields inherited from class jimm.twice.xml.dom.NamedElement
name
 
Fields inherited from class jimm.twice.xml.dom.Element
CLOSE_TAG, OPEN_AND_CLOSE_TAG, OPEN_TAG
 
Constructor Summary
XMLDecl()
          Constructor.
 
Method Summary
 void writeTo(java.io.OutputStream out, int openOrClose)
          Writes this element as an XML string.
 
Methods inherited from class jimm.twice.xml.dom.NamedAttributes
getAttribute, setAttribute, writeAttributes
 
Methods inherited from class jimm.twice.xml.dom.NamedElement
getName
 
Methods inherited from class jimm.twice.xml.dom.Element
writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_DECL_STRING

protected static final java.lang.String XML_DECL_STRING
See Also:
Constant Field Values
Constructor Detail

XMLDecl

public XMLDecl()
Constructor.

Method Detail

writeTo

public void writeTo(java.io.OutputStream out,
                    int openOrClose)
             throws java.io.IOException
Description copied from class: Element
Writes this element as an XML string. The parameter openOrClose determines if the open tag (OPEN_TAG), close tag (CLOSE_TAG), or both (OPEN_AND_CLOSE_TAG) should be returned.

Specified by:
writeTo in class Element
Parameters:
out - the output writer
openOrClose - one of OPEN_TAG, CLOSE_TAG, or OPEN_AND_CLOSE_TAG
Throws:
java.io.IOException