org.pentaho.reporting.engine.classic.core.modules.parser.extwriter
Class StyleWriter

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.AbstractXMLDefinitionWriter
      extended by org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.StyleWriter

public class StyleWriter
extends AbstractXMLDefinitionWriter

A style writer. This class will write a single stylesheet into the writer.

Author:
Thomas Morgner.

Field Summary
 
Fields inherited from class org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.AbstractXMLDefinitionWriter
BASIC_KEY_TAG, BASIC_OBJECT_TAG, CLASS_ATTRIBUTE, COMPOUND_KEY_TAG, COMPOUND_OBJECT_TAG, CONFIGURATION_TAG, DATASOURCE_TAG, EXTENDS_TAG, FUNCTIONS_TAG, HEIGHT_ATT, NAME_ATTR, OUTPUT_TARGET_TAG, PARSER_CONFIG_TAG, PROPERTIES_TAG, PROPERTY_TAG, REPORT_CONFIG_TAG, REPORT_DEFINITION_TAG, STYLE_TAG, STYLES_TAG, TEMPLATE_TAG, TEMPLATES_TAG, WIDTH_ATT
 
Constructor Summary
StyleWriter(ReportWriterContext reportWriter, ElementStyleSheet elementStyleSheet, org.pentaho.reporting.libraries.xmlns.writer.XmlWriter writer)
          Creates a new writer.
 
Method Summary
 void write()
          Writes the style sheet.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleWriter

public StyleWriter(ReportWriterContext reportWriter,
                   ElementStyleSheet elementStyleSheet,
                   org.pentaho.reporting.libraries.xmlns.writer.XmlWriter writer)
Creates a new writer.

Parameters:
reportWriter - the report writer.
elementStyleSheet - the element style sheet (never null).
writer - the current indention level.
Method Detail

write

public void write()
           throws IOException,
                  ReportWriterException
Writes the style sheet.

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