public class MarkupWriter extends Object
Constructor and Description |
---|
MarkupWriter(Writer writer) |
Modifier and Type | Method and Description |
---|---|
void |
endElement(String name) |
boolean |
getFormatOutput() |
int |
getIndent() |
char |
getIndentCharacter() |
int |
getIndentSize() |
PrintWriter |
getWriter() |
void |
setFormatOutput(boolean formatOutput) |
void |
setIndent(int indent) |
void |
setIndentCharacter(char indentCharacter) |
void |
setIndentSize(int indentSize) |
void |
startElement(String name,
Map<String,String> attributes) |
void |
writeAttribute(String attributeName,
String attributeValue) |
void |
writeContent(String content) |
protected void |
writeIndent() |
public MarkupWriter(Writer writer)
writer
- public PrintWriter getWriter()
public boolean getFormatOutput()
public void setFormatOutput(boolean formatOutput)
formatOutput
- the formatOutput to setpublic int getIndent()
public void setIndent(int indent)
indent
- the indent to setpublic int getIndentSize()
public void setIndentSize(int indentSize)
indentSize
- the indentSize to setpublic char getIndentCharacter()
public void setIndentCharacter(char indentCharacter)
indentCharacter
- the indentCharacter to setprotected void writeIndent()
public void startElement(String name, Map<String,String> attributes)
name
- attributes
- public void writeAttribute(String attributeName, String attributeValue)
attributeName
- attributeValue
- public void writeContent(String content)
content
- public void endElement(String name)
name
- Copyright © 2012–2013 Eyeq MC. All rights reserved.