net.sf.jasperreports.engine.xml
Class JRXmlBaseWriter

java.lang.Object
  extended by net.sf.jasperreports.engine.xml.JRXmlBaseWriter
Direct Known Subclasses:
JRXmlTemplateWriter, JRXmlWriter

public abstract class JRXmlBaseWriter
extends java.lang.Object

Base XML writer.

Version:
$Id: JRXmlBaseWriter.java 3034 2009-08-27 11:58:04Z teodord $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)

Field Summary
protected  JRXmlWriteHelper writer
           
 
Constructor Summary
JRXmlBaseWriter()
           
 
Method Summary
protected abstract  boolean toWriteConditionalStyles()
          Decides whether conditional styles are to be written.
protected  void useWriter(JRXmlWriteHelper aWriter)
          Sets the XML write helper.
protected  void writeBox(JRLineBox box)
           
protected  void writeConditionalStyle(JRConditionalStyle style)
          Writes a conditional style.
protected  void writePen(JRPen pen)
           
protected  void writeStyle(JRStyle style)
          Writes a style.
protected  void writeStyleReferenceAttr(JRStyleContainer styleContainer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

protected JRXmlWriteHelper writer
Constructor Detail

JRXmlBaseWriter

public JRXmlBaseWriter()
Method Detail

useWriter

protected void useWriter(JRXmlWriteHelper aWriter)
Sets the XML write helper.

Parameters:
aWriter - the XML write helper

writeStyle

protected void writeStyle(JRStyle style)
                   throws java.io.IOException
Writes a style.

Parameters:
style - the style to write.
Throws:
java.io.IOException

writeStyleReferenceAttr

protected void writeStyleReferenceAttr(JRStyleContainer styleContainer)

toWriteConditionalStyles

protected abstract boolean toWriteConditionalStyles()
Decides whether conditional styles are to be written.

Returns:
whether conditional styles are to be written

writeConditionalStyle

protected void writeConditionalStyle(JRConditionalStyle style)
                              throws java.io.IOException
Writes a conditional style.

Parameters:
style - the conditional style
Throws:
java.io.IOException

writePen

protected void writePen(JRPen pen)
                 throws java.io.IOException
Throws:
java.io.IOException

writeBox

protected void writeBox(JRLineBox box)
                 throws java.io.IOException
Throws:
java.io.IOException


© 2001-2009 Jaspersoft Corporation www.jaspersoft.com