|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jdom.output.XMLOutputter
com.groiss.gui.HTMLOutputter
public class HTMLOutputter
This ia a customized outputter that does not encode the \r chars and don't expand empty elements like br,img or input. The outputter is used if you call show() on a com.groiss.gui.Component subclass.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jdom.output.XMLOutputter |
|---|
org.jdom.output.XMLOutputter.NamespaceStack |
| Field Summary | |
|---|---|
static String[] |
NOEXPAND
|
| Fields inherited from class org.jdom.output.XMLOutputter |
|---|
currentFormat, preserveFormat |
| Constructor Summary | |
|---|---|
HTMLOutputter()
|
|
| Method Summary | |
|---|---|
String |
escapeElementEntities(String str)
This will take the three pre-defined entities in XML 1.0 (used specifically in XML elements) and convert their character representation to the appropriate entity reference, suitable for XML element content. |
protected void |
printElement(Writer out,
org.jdom.Element element,
int level,
org.jdom.output.XMLOutputter.NamespaceStack namespaces)
We change the format directive expandEmptyElements to false for HTML elements without content, for example br, img, input. |
protected void |
printProcessingInstruction(Writer out,
org.jdom.ProcessingInstruction pi)
This will handle printing of processing instructions. |
void |
setEscapeEntities(boolean escape)
Set escape to false if you don't want to escape entities. |
| Methods inherited from class org.jdom.output.XMLOutputter |
|---|
clone, escapeAttributeEntities, getFormat, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, outputElementContent, outputElementContent, outputString, outputString, outputString, outputString, outputString, outputString, outputString, outputString, outputString, printAttributes, printCDATA, printComment, printDeclaration, printDocType, printEntityRef, printText, setFormat, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String[] NOEXPAND
| Constructor Detail |
|---|
public HTMLOutputter()
| Method Detail |
|---|
public void setEscapeEntities(boolean escape)
escape - public String escapeElementEntities(String str)
escapeElementEntities in class org.jdom.output.XMLOutputterstr - String input to escape.
String with escaped content.
protected void printProcessingInstruction(Writer out,
org.jdom.ProcessingInstruction pi)
throws IOException
printProcessingInstruction in class org.jdom.output.XMLOutputterpi - ProcessingInstruction to write.out - Writer to use.
IOException
protected void printElement(Writer out,
org.jdom.Element element,
int level,
org.jdom.output.XMLOutputter.NamespaceStack namespaces)
throws IOException
printElement in class org.jdom.output.XMLOutputterIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||