|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjd.xml.xslt.result.ResultBuilder
jd.xml.xslt.result.MarkupResultBuilder
A base class ResultBuilders which output a markup stream.
| Field Summary | |
protected AttributeList |
attributes_
|
protected static int |
BUFFER_SIZE
|
protected boolean |
elementStarted_
|
protected Encoding |
encoding_
|
protected boolean |
indent_
|
protected static int |
MAX_POS
|
protected NamespaceSupport |
nsSupport_
|
protected boolean |
outAutoFlush_
|
protected boolean |
outNewLine_
|
protected Output |
output_
|
protected OutputFormat |
outputFormat_
|
protected XsltResult |
result_
|
protected static Encoding |
UTF_8
|
| Constructor Summary | |
MarkupResultBuilder(XsltResult result)
Create a new XmlResultBuilder. |
|
| Method Summary | |
void |
addAttribute(String name,
String prefix,
String uri,
String value)
Add an attribute to the output. |
void |
addComment(String value)
Add a comment to the output. |
void |
addNamespace(String prefix,
String uri,
boolean test)
Add a namespace node to the output. |
void |
cleanup()
Closes the outputstream if requested at construction time. |
protected void |
decreasePrintIndent()
|
void |
endDocument()
End the document output. |
protected abstract void |
flushNode(boolean addContent)
|
String |
getNamespacePrefix(String uri)
Return the current namespace prefix of the namespace with the given uri |
protected void |
increasePrintIndent()
|
protected void |
printAttribute(String name,
String value)
|
protected int |
printCharReference(char c,
String text,
int i,
int length)
|
protected boolean |
printCharReference(int c,
int next)
|
protected void |
printIndent()
|
protected abstract void |
printLineBreak()
|
protected void |
println()
|
void |
startDocument(OutputFormat outputFormat)
Start the document output. |
| Methods inherited from class jd.xml.xslt.result.ResultBuilder |
addAttribute, addProcessingInstruction, addText, addTextUnescaped, convertException, endElement, getSubResultBuilder, getUri, startElement, startElement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final Encoding UTF_8
protected static final int BUFFER_SIZE
protected static final int MAX_POS
protected OutputFormat outputFormat_
protected XsltResult result_
protected Encoding encoding_
protected boolean outNewLine_
protected boolean outAutoFlush_
protected boolean indent_
protected boolean elementStarted_
protected Output output_
protected NamespaceSupport nsSupport_
protected AttributeList attributes_
| Constructor Detail |
public MarkupResultBuilder(XsltResult result)
| Method Detail |
public void startDocument(OutputFormat outputFormat)
ResultBuilder
startDocument in class ResultBuilderoutputFormat - the output formatpublic void endDocument()
endDocument in class ResultBuilderpublic void addComment(String value)
addComment in class ResultBuilder
public void addAttribute(String name,
String prefix,
String uri,
String value)
addAttribute in class ResultBuildername - the qnameprefix - the prefixuri - the namespace urivalue - the value
public void addNamespace(String prefix,
String uri,
boolean test)
addNamespace in class ResultBuilderprefix - the namespace prefixuri - the namespace uritest - flag if it should be tested that the namespace can be inserted
in the output tree at this place.public String getNamespacePrefix(String uri)
getNamespacePrefix in class ResultBuilderpublic void cleanup()
cleanup in class ResultBuilderprotected final void println()
protected final void printAttribute(String name,
String value)
protected final boolean printCharReference(int c,
int next)
protected final int printCharReference(char c,
String text,
int i,
int length)
c - the current character == text.charAt(i)protected final void printIndent()
protected final void increasePrintIndent()
protected final void decreasePrintIndent()
protected abstract void printLineBreak()
protected abstract void flushNode(boolean addContent)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||