flatscape.util
Class SaveXMLDocument

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--flatscape.util.SaveXMLDocument
All Implemented Interfaces:
java.lang.Runnable

public class SaveXMLDocument
extends java.lang.Thread

Copyright (c) 2001 Rutgers, The State University of New Jersey

Since:
flatscape %Version%
Version:
%Version%, %Time%

Field Summary
protected  boolean canonical
          Canonical output.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SaveXMLDocument(java.lang.String name, FGlyph rootGlyph)
           
 
Method Summary
protected  java.lang.String getWriterEncoding()
           
protected  boolean isValidJavaEncoding(java.lang.String encoding)
           
protected  java.lang.String normalize(java.lang.String s)
          Normalizes the given string.
 void run()
           
protected  void setWriterEncoding(java.lang.String encoding)
           
protected  org.w3c.dom.Attr[] sortAttributes(org.w3c.dom.NamedNodeMap attrs)
          Returns a sorted list of attributes.
protected  void write(org.w3c.dom.Node node, java.io.PrintWriter out)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

canonical

protected boolean canonical
Canonical output.

Constructor Detail

SaveXMLDocument

public SaveXMLDocument(java.lang.String name,
                       FGlyph rootGlyph)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

getWriterEncoding

protected java.lang.String getWriterEncoding()

setWriterEncoding

protected void setWriterEncoding(java.lang.String encoding)

isValidJavaEncoding

protected boolean isValidJavaEncoding(java.lang.String encoding)

normalize

protected java.lang.String normalize(java.lang.String s)
Normalizes the given string.


write

protected void write(org.w3c.dom.Node node,
                     java.io.PrintWriter out)

sortAttributes

protected org.w3c.dom.Attr[] sortAttributes(org.w3c.dom.NamedNodeMap attrs)
Returns a sorted list of attributes.



Copyright (c) 2003 Rutgers, The State University of New Jersey