jdbreport.model.io.xml.ooxml
Class DocxWriter

java.lang.Object
  extended by jdbreport.model.io.xml.ooxml.DocxWriter
All Implemented Interfaces:
ReportWriter, ResourceWriter

public class DocxWriter
extends Object
implements ReportWriter

Version:
1.0 02.06.2010
Author:
Andrey Kholmanskih

Constructor Summary
DocxWriter()
           
 
Method Summary
protected  ReportWriter getContentWriter()
           
protected  ReportWriter getMetaWriter()
           
protected  ReportWriter getSettingsWriter()
           
 void save(File file, ReportBook reportBook)
           
 void save(OutputStream out, ReportBook reportBook)
           
 void save(Writer writer, ReportBook reportBook)
           
 String write(String fileName, Object resource)
          Write of resources
 void writeIcon(String fileName, RenderedImage image)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocxWriter

public DocxWriter()
Method Detail

save

public void save(OutputStream out,
                 ReportBook reportBook)
          throws SaveReportException
Specified by:
save in interface ReportWriter
Throws:
SaveReportException

getSettingsWriter

protected ReportWriter getSettingsWriter()

getMetaWriter

protected ReportWriter getMetaWriter()

getContentWriter

protected ReportWriter getContentWriter()

save

public void save(Writer writer,
                 ReportBook reportBook)
          throws SaveReportException
Specified by:
save in interface ReportWriter
Throws:
SaveReportException

save

public void save(File file,
                 ReportBook reportBook)
          throws SaveReportException
Specified by:
save in interface ReportWriter
Throws:
SaveReportException

write

public String write(String fileName,
                    Object resource)
             throws SaveReportException
Description copied from interface: ResourceWriter
Write of resources

Specified by:
write in interface ResourceWriter
Returns:
the filename
Throws:
SaveReportException

writeIcon

public void writeIcon(String fileName,
                      RenderedImage image)