|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Renderer
This is MillScripts rendering interface. Implementations of this are used to render objects to the different output formats MillScript provides.
| 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 e)
Renders the specified XML element using this renderer. |
| Method Detail |
|---|
void append(char ch)
throws java.io.IOException
ch - the character to append, allowing it to be escaped
java.io.IOException - thrown if an IO problem occurs
void append(java.lang.CharSequence cs)
throws java.io.IOException
ch - the character sequence to append, allowing its characters
to be escaped
java.io.IOException - thrown if an IO problem occurs
void appendEscapeFor(char ch)
throws java.io.IOException
ch - the character to append an escape sequence for
java.io.IOException - thrown if an IO problem occurs
void appendNoEscape(char ch)
throws java.io.IOException
ch - the character to append, without using an escape sequence.
java.io.IOException - thrown if an IO problem occurs
void appendNoEscape(java.lang.CharSequence cs)
throws java.io.IOException
ch - the character sequence to append, without escaping any of
the characters in the sequence
java.io.IOException - thrown if an IO problem occursboolean canEncode(char ch)
ch - the character to check
true if the character can be encoded by this
renderer
void render(java.lang.Object o)
throws java.io.IOException
o - the object to render
java.io.IOException - thrown if an IO problem occursvoid renderAsDocument(java.lang.Object o)
o - the object to render to the filevoid renderAsFragment(org.millscript.commons.util.IList<?> l)
l - the list of objects to write to the file
void renderCDATA(CDATA c)
throws java.io.IOException
c - the CDATA object to render
java.io.IOException - thrown if an IO problem occurs
void renderDocumentFooter()
throws java.io.IOException
java.io.IOException - thrown if an IO problem occurs
void renderDocumentHeader()
throws java.io.IOException
java.io.IOException - thrown if an IO problem occurs
void renderObject(java.lang.Object o)
throws java.io.IOException
o - the object to render
java.io.IOException - thrown if an IO problem occurs
void renderXMLComment(XmlComment c)
throws java.io.IOException
c - the XML comment to render
java.io.IOException - thrown if an IO problem occurs
void renderXMLElement(XmlElement e)
throws java.io.IOException
e - the XML element to render
java.io.IOException - thrown if an IO problem occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||