Style Intelligence v12.0

inetsoft.report.io
Class AbstractGenerator

java.lang.Object
  extended by inetsoft.report.io.AbstractGenerator
All Implemented Interfaces:
Generator
Direct Known Subclasses:
ExcelGenerator, HTMLGenerator, PDF3Generator, PPTGenerator, PSGenerator, RTFGenerator, SVGGenerator, TextGenerator, XMLGenerator

public abstract class AbstractGenerator
extends Object
implements Generator

This interface is the common interface for all report export generators.


Field Summary
protected  DocumentInfo docInfo
           
 
Constructor Summary
AbstractGenerator()
           
 
Method Summary
 void addProgressListener(ProgressListener listener)
          Add a listener to be notified of export progress.
protected  void fireProgressEvent(int current)
          Fire a progress event.
protected  Enumeration getCachePages(inetsoft.report.internal.paging.ReportCache cache, Object rid)
          Get report cache pages.
 OutputStream getOutput()
          Get the output stream used by the generator.
 inetsoft.report.internal.paging.ReportCache getReportCache()
          Get report cache;
 Object getReportId()
          Get report ID;
 void removeProgressListener(ProgressListener listener)
          Remove a listener.
 void setDocumentInfo(DocumentInfo info)
          Set the document info to export.
 void setOutput(OutputStream output)
          Set the output stream of this generator.
 void setReportCache(inetsoft.report.internal.paging.ReportCache repcache)
          Set report cache;
 void setReportId(Object repId)
          Set report ID;
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface inetsoft.report.io.Generator
generate, generate
 

Field Detail

docInfo

protected DocumentInfo docInfo
Constructor Detail

AbstractGenerator

public AbstractGenerator()
Method Detail

setDocumentInfo

public void setDocumentInfo(DocumentInfo info)
Set the document info to export.

Specified by:
setDocumentInfo in interface Generator

setOutput

public void setOutput(OutputStream output)
Set the output stream of this generator.

Specified by:
setOutput in interface Generator

getOutput

public OutputStream getOutput()
Get the output stream used by the generator.

Specified by:
getOutput in interface Generator

addProgressListener

public void addProgressListener(ProgressListener listener)
Add a listener to be notified of export progress.

Specified by:
addProgressListener in interface Generator

removeProgressListener

public void removeProgressListener(ProgressListener listener)
Remove a listener.

Specified by:
removeProgressListener in interface Generator

setReportCache

public void setReportCache(inetsoft.report.internal.paging.ReportCache repcache)
Set report cache;

Specified by:
setReportCache in interface Generator

getReportCache

public inetsoft.report.internal.paging.ReportCache getReportCache()
Get report cache;

Specified by:
getReportCache in interface Generator

setReportId

public void setReportId(Object repId)
Set report ID;

Specified by:
setReportId in interface Generator

getReportId

public Object getReportId()
Get report ID;

Specified by:
getReportId in interface Generator

fireProgressEvent

protected void fireProgressEvent(int current)
Fire a progress event.


getCachePages

protected Enumeration getCachePages(inetsoft.report.internal.paging.ReportCache cache,
                                    Object rid)
Get report cache pages.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.