org.mmbase.util
Class XMLScreenWriter

java.lang.Object
  |
  +--org.mmbase.util.XMLScreenWriter

public class XMLScreenWriter
extends java.lang.Object

Writes XML as pretty printed HTML

Version:
19 Apr 2001
Author:
Cees Roele

Constructor Summary
XMLScreenWriter(java.lang.String filename)
           
 
Method Summary
protected  java.lang.String indent(int level)
           
protected  boolean isEndNode(org.w3c.dom.Node node)
           
 void write(java.io.Writer out)
           
 void write(java.io.Writer out, org.w3c.dom.Node node, int level)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLScreenWriter

public XMLScreenWriter(java.lang.String filename)
Method Detail

write

public void write(java.io.Writer out)
           throws java.io.IOException

write

public void write(java.io.Writer out,
                  org.w3c.dom.Node node,
                  int level)
           throws java.io.IOException

indent

protected java.lang.String indent(int level)
Parameters:
level - Indentation level
Returns:
String of hard HTML spaces ( ) that are multiple of level

isEndNode

protected boolean isEndNode(org.w3c.dom.Node node)
Parameters:
node -  
Returns:
Whether the node contains only a text node, or possibly also an attribute node


MMBase 2001