public class MarkupWriter
extends java.lang.Object
Constructor and Description |
---|
MarkupWriter(java.io.Writer writer)
Initialize the new instance with default values.
|
Modifier and Type | Method and Description |
---|---|
void |
beginStartTag(java.lang.String tagName) |
protected void |
beginTag() |
protected void |
closeTag() |
java.lang.String |
contents() |
void |
decIndent() |
protected int |
findSpecialChar(char ch) |
void |
finishEmptyTag() |
void |
finishTag() |
protected void |
flush() |
int |
getIndentIncrement() |
int |
getIndentLevel() |
protected char |
getQuoteChar() |
protected java.io.Writer |
getWriter() |
void |
incIndent() |
protected Logger |
logger() |
void |
newDecIndentedLine() |
void |
newIncIndentedLine() |
void |
newIndentedLine() |
void |
setIndentIncrement(int newValue) |
protected void |
setIndentLevel(int newValue) |
protected void |
setQuoteChar(char newValue) |
protected void |
setWriter(java.io.Writer newValue) |
protected java.lang.String |
translateCharacter(char ch,
boolean transQuote) |
void |
useDoubleQuotes()
Configures the writer to write double quotes ( " ) around attribute values.
|
void |
useSingleQuotes()
Configures the writer to write single quotes ( ' ) around attribute values.
|
protected void |
write(char ch) |
protected void |
write(java.lang.String text) |
protected void |
writeAssignment() |
void |
writeAttribute(java.lang.String attrName,
java.lang.String value) |
protected void |
writeCharData(java.lang.String text,
boolean asAttrValue) |
void |
writeEmptyTag(java.lang.String tagName) |
void |
writeEndTag(java.lang.String tagName) |
protected void |
writeIndentation() |
protected void |
writeQuote() |
protected void |
writeSpace() |
void |
writeStartTag(java.lang.String tagName) |
void |
writeText(java.lang.String text) |
public MarkupWriter(java.io.Writer writer)
public int getIndentLevel()
public int getIndentIncrement()
public void setIndentIncrement(int newValue)
public void writeStartTag(java.lang.String tagName)
public void beginStartTag(java.lang.String tagName)
public void writeEndTag(java.lang.String tagName)
public void writeEmptyTag(java.lang.String tagName)
public void finishEmptyTag()
public void finishTag()
public void writeAttribute(java.lang.String attrName, java.lang.String value)
public void writeText(java.lang.String text)
public void newIndentedLine()
public void newIncIndentedLine()
public void newDecIndentedLine()
public java.lang.String contents()
public void incIndent()
public void decIndent()
public void useSingleQuotes()
public void useDoubleQuotes()
protected void beginTag()
protected void closeTag()
protected void writeSpace()
protected void writeAssignment()
protected void writeQuote()
protected void writeCharData(java.lang.String text, boolean asAttrValue)
protected void write(java.lang.String text)
protected void write(char ch)
protected void flush()
protected void writeIndentation()
protected int findSpecialChar(char ch)
protected java.lang.String translateCharacter(char ch, boolean transQuote)
protected Logger logger()
protected java.io.Writer getWriter()
protected void setWriter(java.io.Writer newValue)
protected void setIndentLevel(int newValue)
protected char getQuoteChar()
protected void setQuoteChar(char newValue)