|
|||||||||
| Home >> All >> gov >> lanl >> [ Utility overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
gov.lanl.Utility
Class TMDOMWriter

java.lang.Objectgov.lanl.Utility.TMDOMWriter
- public class TMDOMWriter
- extends java.lang.Object
A sample DOM writer. This sample program illustrates how to traverse a DOM tree in order to print a document that is parsed. Modified with the TMDOMWriterOutputInterface and renamed by Jim George, LANL
- Version:
- $Revision: 1.3 $ $Date: 2003/07/09 20:47:55 $
| Nested Class Summary | |
(package private) class |
TMDOMWriter.LocalSysPrint
Class declaration |
| Field Summary | |
protected boolean |
canonical
Canonical output. |
private static java.lang.String[] |
MIME2JAVA_ENCODINGS
Default Encoding |
(package private) TMDOMWriterOutputInterface |
out
The mechanism for outputting |
| Constructor Summary | |
TMDOMWriter(org.w3c.dom.Document inDoc)
The constructor for writing a text version of the document to the the standard sysout. |
|
TMDOMWriter(org.w3c.dom.Document inDoc,
TMDOMWriterOutputInterface inOutMedia)
The constructor for writing a text version of the document to the output media. |
|
| Method Summary | |
static boolean |
isValidJavaEncoding(java.lang.String encoding)
Method declaration |
protected java.lang.String |
normalize(java.lang.String s)
Normalizes the given string. |
void |
print(org.w3c.dom.Node node)
Prints the specified node, recursively. |
protected org.w3c.dom.Attr[] |
sortAttributes(org.w3c.dom.NamedNodeMap attrs)
Returns a sorted list of attributes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
MIME2JAVA_ENCODINGS
private static java.lang.String[] MIME2JAVA_ENCODINGS
- Default Encoding
out
TMDOMWriterOutputInterface out
- The mechanism for outputting
canonical
protected boolean canonical
- Canonical output.
| Constructor Detail |
TMDOMWriter
public TMDOMWriter(org.w3c.dom.Document inDoc, TMDOMWriterOutputInterface inOutMedia)
- The constructor for writing a text version of the document to the
output media.
TMDOMWriter
public TMDOMWriter(org.w3c.dom.Document inDoc)
- The constructor for writing a text version of the document to the
the standard sysout.
| Method Detail |
isValidJavaEncoding
public static boolean isValidJavaEncoding(java.lang.String encoding)
- Method declaration
public void print(org.w3c.dom.Node node)
- Prints the specified node, recursively.
sortAttributes
protected org.w3c.dom.Attr[] sortAttributes(org.w3c.dom.NamedNodeMap attrs)
- Returns a sorted list of attributes.
normalize
protected java.lang.String normalize(java.lang.String s)
- Normalizes the given string.
|
|||||||||
| Home >> All >> gov >> lanl >> [ Utility overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
gov.lanl.Utility.TMDOMWriter