org.apache.struts2.interceptor.debugging
Class PrettyPrintWriter
java.lang.Object
org.apache.struts2.interceptor.debugging.PrettyPrintWriter
public class PrettyPrintWriter
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
writer
private final PrintWriter writer
elementStack
private final Stack<String> elementStack
lineIndenter
private final char[] lineIndenter
tagInProgress
private boolean tagInProgress
depth
private int depth
readyForNewLine
private boolean readyForNewLine
tagIsEmpty
private boolean tagIsEmpty
newLine
private String newLine
escape
private boolean escape
NULL
private static final char[] NULL
AMP
private static final char[] AMP
LT
private static final char[] LT
GT
private static final char[] GT
SLASH_R
private static final char[] SLASH_R
QUOT
private static final char[] QUOT
APOS
private static final char[] APOS
CLOSE
private static final char[] CLOSE
PrettyPrintWriter
public PrettyPrintWriter(Writer writer,
char[] lineIndenter,
String newLine)
PrettyPrintWriter
public PrettyPrintWriter(Writer writer,
char[] lineIndenter)
PrettyPrintWriter
public PrettyPrintWriter(Writer writer,
String lineIndenter,
String newLine)
PrettyPrintWriter
public PrettyPrintWriter(Writer writer,
String lineIndenter)
PrettyPrintWriter
public PrettyPrintWriter(Writer writer)
startNode
public void startNode(String name)
setValue
public void setValue(String text)
addAttribute
public void addAttribute(String key,
String value)
writeAttributeValue
protected void writeAttributeValue(PrintWriter writer,
String text)
writeText
protected void writeText(PrintWriter writer,
String text)
writeText
private void writeText(String text)
endNode
public void endNode()
finishTag
private void finishTag()
endOfLine
protected void endOfLine()
flush
public void flush()
close
public void close()
isEscape
public boolean isEscape()
setEscape
public void setEscape(boolean escape)
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.