|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer java.io.PrintWriter com.softsynth.util.IndentingWriter com.softsynth.util.XMLPrinter
public class XMLPrinter
Constructor Summary | |
---|---|
XMLPrinter()
|
|
XMLPrinter(java.io.OutputStream stream)
|
Method Summary | |
---|---|
void |
beginElement(java.lang.String tag,
java.util.Hashtable attributes,
boolean ifEmpty)
Handles the start of an element. |
void |
endElement(java.lang.String tag)
Handles the end of an element. |
void |
foundContent(java.lang.String content)
Handles the content of an element. |
static void |
main(java.lang.String[] args)
Print a file passed as a command line argument. |
Methods inherited from class com.softsynth.util.IndentingWriter |
---|
getIndentation, indent, print, println, println, setIndentation, undent |
Methods inherited from class java.io.PrintWriter |
---|
append, append, append, checkError, close, flush, format, format, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, write, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLPrinter()
public XMLPrinter(java.io.OutputStream stream)
Method Detail |
---|
public static void main(java.lang.String[] args)
public void beginElement(java.lang.String tag, java.util.Hashtable attributes, boolean ifEmpty)
XMLListener
beginElement
in interface XMLListener
public void foundContent(java.lang.String content)
XMLListener
foundContent
in interface XMLListener
public void endElement(java.lang.String tag)
XMLListener
endElement
in interface XMLListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |