|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 java.lang.String[] |
NOEXPAND
|
Fields inherited from class org.jdom.output.XMLOutputter |
---|
currentFormat, preserveFormat |
Constructor Summary | |
---|---|
HTMLOutputter()
|
Method Summary | |
---|---|
java.lang.String |
escapeElementEntities(java.lang.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(java.io.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(java.io.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 java.lang.String[] NOEXPAND
Constructor Detail |
---|
public HTMLOutputter()
Method Detail |
---|
public void setEscapeEntities(boolean escape)
escape
- public java.lang.String escapeElementEntities(java.lang.String str)
escapeElementEntities
in class org.jdom.output.XMLOutputter
str
- String
input to escape.
String
with escaped content.protected void printProcessingInstruction(java.io.Writer out, org.jdom.ProcessingInstruction pi) throws java.io.IOException
printProcessingInstruction
in class org.jdom.output.XMLOutputter
pi
- ProcessingInstruction
to write.out
- Writer
to use.
java.io.IOException
protected void printElement(java.io.Writer out, org.jdom.Element element, int level, org.jdom.output.XMLOutputter.NamespaceStack namespaces) throws java.io.IOException
printElement
in class org.jdom.output.XMLOutputter
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |