|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.render.AbstractRenderer
org.millscript.millscript.render.DatafileRenderer
public final class DatafileRenderer
This class implements MillScripts datafile renderer. It renders to a plain text separated file format.
| Field Summary |
|---|
| Fields inherited from class org.millscript.millscript.render.AbstractRenderer |
|---|
availableEntities, config, outputCharset, outputEncoder, outputVFile, outputWriter |
| Constructor Summary | |
|---|---|
DatafileRenderer(Configuration conf,
org.millscript.commons.vfs.VFile file)
Constructs a new lines renderer, to render to the specified virtual file using the given confguration. |
|
| 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. |
void |
render(java.lang.Object o)
Renders the specified object with 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 |
renderXMLElement(XmlElement e)
Renders the specified XML element using this renderer. |
| Methods inherited from class org.millscript.millscript.render.AbstractRenderer |
|---|
canEncode, renderAsDocument, renderAsFragment, renderCDATA, renderXMLComment |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatafileRenderer(Configuration conf,
org.millscript.commons.vfs.VFile file)
conf - the configuration to get rendering parameters fromfile - the virtual output file| Method Detail |
|---|
public void append(char ch)
throws java.io.IOException
Renderer
ch - 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 Rendererappend in class AbstractRendererjava.io.IOException - thrown if an IO problem occursRenderer.append(java.lang.CharSequence)
public void appendEscapeFor(char ch)
throws java.io.IOException
Renderer
ch - 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
ch - 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 RendererappendNoEscape in class AbstractRendererjava.io.IOException - thrown if an IO problem occursRenderer.appendNoEscape(java.lang.CharSequence)
public void render(java.lang.Object o)
throws java.io.IOException
Renderer
render in interface Rendererrender in class AbstractRenderero - the object to render
java.io.IOException - thrown if an IO problem occursRenderer.render(java.lang.Object)public void renderDocumentFooter()
Renderer
Renderer.renderDocumentFooter()public void renderDocumentHeader()
Renderer
Renderer.renderDocumentHeader()
public void renderObject(java.lang.Object o)
throws java.io.IOException
Renderer
o - the object to render
java.io.IOException - thrown if an IO problem occursRenderer.renderObject(java.lang.Object)
public void renderXMLElement(XmlElement e)
throws java.io.IOException
Renderer
e - 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 | |||||||||