|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.xml.writer.XMLWriterSupport
org.jfree.report.modules.parser.extwriter.AbstractXMLDefinitionWriter
A base class for writer classes for the JFreeReport XML report files.
Field Summary |
Fields inherited from class org.jfree.xml.writer.XMLWriterSupport |
CLOSE, CLOSE_TAG_DECREASE, INDENT_ONLY, OPEN, OPEN_TAG_INCREASE |
Constructor Summary | |
AbstractXMLDefinitionWriter(ReportWriter reportWriter,
int indentLevel)
Creates a new writer. |
Method Summary | |
static org.jfree.xml.writer.SafeTagList |
getDefaultSafeTags()
Returns the tags that can safely extend over several lines in the XML definition. |
protected JFreeReport |
getReport()
Returns the report. |
protected ReportWriter |
getReportWriter()
Returns the report writer. |
static java.lang.String |
normalize(java.lang.String s)
Normalises a string, replacing certain characters with their escape sequences so that the XML text is not corrupted. |
abstract void |
write(java.io.Writer writer)
Writes the report definition portion. |
protected void |
writeComment(java.io.Writer writer,
CommentHintPath path,
java.lang.String hintName)
Reads a comment from the given comment hint path and hint name and Writes that comment to the xml stream. |
protected void |
writeComment(java.io.Writer writer,
java.lang.String comment)
Writes the given comment. |
Methods inherited from class org.jfree.xml.writer.XMLWriterSupport |
allowLineBreak, decreaseIndent, endBlock, getIndentLevel, getLineSeparator, getSafeTags, increaseIndent, indent, startBlock, writeCloseTag, writeTag, writeTag, writeTag, writeTag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractXMLDefinitionWriter(ReportWriter reportWriter, int indentLevel)
reportWriter
- the report writer.indentLevel
- the current indention level.Method Detail |
public static org.jfree.xml.writer.SafeTagList getDefaultSafeTags()
protected ReportWriter getReportWriter()
protected JFreeReport getReport()
public static java.lang.String normalize(java.lang.String s)
s
- the string.
protected void writeComment(java.io.Writer writer, java.lang.String comment) throws java.io.IOException
writer
- the writer that should receive the content.comment
- the xml comment that should be written.
java.io.IOException
- if an error occurs.protected void writeComment(java.io.Writer writer, CommentHintPath path, java.lang.String hintName) throws java.io.IOException
writer
- the writer that should receive the contentpath
- the comment hint path that points to the commenthintName
- the hint name used to store the comment
java.io.IOException
- if an error occured.public abstract void write(java.io.Writer writer) throws java.io.IOException, ReportWriterException
writer
- the writer.
java.io.IOException
- if there is an I/O problem.
ReportWriterException
- if the report serialisation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |