|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.render.XMLCDATARenderer
public final class XMLCDATARenderer
This renderer is used for rendering the CDATA content of an element in XML. As such it delegates most of it's rendering methods to a normal XML renderer.
| Constructor Summary | |
|---|---|
XMLCDATARenderer(Renderer hr)
Constructs a new XML CDATA renderer, to use the specified XML renderer for rendering. |
|
| Method Summary | |
|---|---|
void |
append(char ch)
Appends the specified character, allowing the character to be escaped as appropriate for this renderer. |
void |
append(java.lang.CharSequence cs)
Appends the specified character sequence, allowing any the sequences characters to be escaped as appropriate for this renderer. |
void |
appendEscapeFor(char ch)
Appends the escape sequence for the specified character. |
void |
appendNoEscape(char ch)
Appends the specified character, without using an escape sequence. |
void |
appendNoEscape(java.lang.CharSequence cs)
Appends the specified character sequence, without escaping any characters in the sequence. |
boolean |
canEncode(char ch)
Checks if the specified character can be encoded by this renderer. |
void |
render(java.lang.Object o)
Renders the specified object with this renderer. |
void |
renderAsDocument(java.lang.Object o)
Renders the specified object to the output file and then closes it. |
void |
renderAsFragment(org.millscript.commons.util.IList l)
Renders the specified object to the output file as a fragment of a complete document. |
void |
renderCDATA(CDATA c)
Renders the specified CDATA object using this renderer. |
void |
renderDocumentFooter()
Renders the required document footer for this renderer. |
void |
renderDocumentHeader()
Renders the required document header for this renderer. |
void |
renderObject(java.lang.Object o)
Renders the specified object using this renderer. |
void |
renderXMLComment(XmlComment c)
Renders the specified XML comment using this renderer. |
void |
renderXMLElement(XmlElement x)
Renders the specified XML element using this renderer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLCDATARenderer(Renderer hr)
hr - the XML renderer to delegate to| Method Detail |
|---|
public void append(char ch)
throws java.io.IOException
Renderer
append in interface Rendererch - the character to append, allowing it to be escaped
java.io.IOException - thrown if an IO problem occursRenderer.append(char)
public void append(java.lang.CharSequence cs)
throws java.io.IOException
Renderer
append in interface Rendererjava.io.IOException - thrown if an IO problem occursRenderer.append(java.lang.CharSequence)
public void appendEscapeFor(char ch)
throws java.io.IOException
Renderer
appendEscapeFor in interface Rendererch - the character to append an escape sequence for
java.io.IOException - thrown if an IO problem occursRenderer.appendEscapeFor(char)
public void appendNoEscape(char ch)
throws java.io.IOException
Renderer
appendNoEscape in interface Rendererch - the character to append, without using an escape sequence.
java.io.IOException - thrown if an IO problem occursRenderer.appendNoEscape(char)
public void appendNoEscape(java.lang.CharSequence cs)
throws java.io.IOException
Renderer
appendNoEscape in interface Rendererjava.io.IOException - thrown if an IO problem occursRenderer.appendNoEscape(java.lang.CharSequence)public boolean canEncode(char ch)
Renderer
canEncode in interface Rendererch - the character to check
true if the character can be encoded by this
rendererRenderer.canEncode(char)
public void render(java.lang.Object o)
throws java.io.IOException
Renderer
render in interface Renderero - the object to render
java.io.IOException - thrown if an IO problem occursRenderer.render(java.lang.Object)public void renderAsDocument(java.lang.Object o)
Renderer
renderAsDocument in interface Renderero - the object to render to the fileRenderer.renderAsDocument(java.lang.Object)public void renderAsFragment(org.millscript.commons.util.IList l)
Renderer
renderAsFragment in interface Rendererl - the list of objects to write to the fileRenderer.renderAsFragment(org.millscript.commons.util.IList)
public void renderCDATA(CDATA c)
throws java.io.IOException
Renderer
renderCDATA in interface Rendererc - the CDATA object to render
java.io.IOException - thrown if an IO problem occursRenderer.renderCDATA(org.millscript.millscript.datatypes.CDATA)
public void renderDocumentFooter()
throws java.io.IOException
Renderer
renderDocumentFooter in interface Rendererjava.io.IOException - thrown if an IO problem occursRenderer.renderDocumentFooter()
public void renderDocumentHeader()
throws java.io.IOException
Renderer
renderDocumentHeader in interface Rendererjava.io.IOException - thrown if an IO problem occursRenderer.renderDocumentHeader()
public void renderObject(java.lang.Object o)
throws java.io.IOException
Renderer
renderObject in interface Renderero - the object to render
java.io.IOException - thrown if an IO problem occursRenderer.renderObject(java.lang.Object)
public void renderXMLComment(XmlComment c)
throws java.io.IOException
Renderer
renderXMLComment in interface Rendererc - the XML comment to render
java.io.IOException - thrown if an IO problem occursRenderer.renderXMLComment(org.millscript.millscript.datatypes.XmlComment)
public void renderXMLElement(XmlElement x)
throws java.io.IOException
Renderer
renderXMLElement in interface Rendererx - the XML element to render
java.io.IOException - thrown if an IO problem occursRenderer.renderXMLElement(org.millscript.millscript.datatypes.XmlElement)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||