com.jrefinery.report.io.ext.writer
Class StyleWriter

java.lang.Object
  extended bycom.jrefinery.report.io.ext.writer.AbstractXMLDefinitionWriter
      extended bycom.jrefinery.report.io.ext.writer.StyleWriter

public class StyleWriter
extends AbstractXMLDefinitionWriter

A style writer.

Author:
Thomas Morgner.

Field Summary
 
Fields inherited from class com.jrefinery.report.io.ext.writer.AbstractXMLDefinitionWriter
CLOSE, CLOSE_TAG_DECREASE, INDENT_ONLY, OPEN, OPEN_TAG_INCREASE
 
Constructor Summary
StyleWriter(ReportWriter reportWriter, ElementStyleSheet elementStyleSheet, ElementStyleSheet defaultStyleSheet, int indentLevel)
          Creates a new writer.
 
Method Summary
 void write(java.io.Writer writer)
          Writes the style.
 
Methods inherited from class com.jrefinery.report.io.ext.writer.AbstractXMLDefinitionWriter
decreaseIndent, getIndentLevel, getLineSeparator, getReport, getReportWriter, getSafeTags, increaseIndent, indent, normalize, writeCloseTag, writeTag, writeTag, writeTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleWriter

public StyleWriter(ReportWriter reportWriter,
                   ElementStyleSheet elementStyleSheet,
                   ElementStyleSheet defaultStyleSheet,
                   int indentLevel)
Creates a new writer.

Parameters:
reportWriter - the report writer.
elementStyleSheet - the element style sheet.
defaultStyleSheet - the default style sheet.
indentLevel - the current indention level.
Method Detail

write

public void write(java.io.Writer writer)
           throws java.io.IOException,
                  ReportWriterException
Writes the style.

Specified by:
write in class AbstractXMLDefinitionWriter
Parameters:
writer - the character stream writer.
Throws:
java.io.IOException - if there is an I/O problem.
ReportWriterException - if there is a problem writing the report.