Style Intelligence v12.0

inetsoft.report.io
Class TextGenerator

java.lang.Object
  extended by inetsoft.report.io.AbstractGenerator
      extended by inetsoft.report.io.TextGenerator
All Implemented Interfaces:
Generator

public class TextGenerator
extends AbstractGenerator

Generates a Text page from a report or a set of StylePages.


Field Summary
protected  PrintWriter writer
           
 
Fields inherited from class inetsoft.report.io.AbstractGenerator
docInfo
 
Constructor Summary
TextGenerator(OutputStream output)
          Create a TextGenerator.
 
Method Summary
 void cancel()
          Cancel the generation if one is going on.
 void generate(Enumeration pages)
          Write a collection of pages to text.
 void generate(ReportSheet sheet)
          Export a report.
 void generate(ReportSheet sheet, Enumeration pages)
          Write a collection of pages to text.
 byte[] getFile(String fname)
          Get a cached data file (e.g.
protected  String getResourceURI(String name)
          Get the URI to access a resource.
 void setOutput(OutputStream output)
          Set the output stream of this generator.
protected  void writePages(Enumeration pages)
          Write a set of pages to a text file.
 
Methods inherited from class inetsoft.report.io.AbstractGenerator
addProgressListener, fireProgressEvent, getCachePages, getOutput, getReportCache, getReportId, removeProgressListener, setDocumentInfo, setReportCache, setReportId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writer

protected PrintWriter writer
Constructor Detail

TextGenerator

public TextGenerator(OutputStream output)
Create a TextGenerator.

Method Detail

setOutput

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

Specified by:
setOutput in interface Generator
Overrides:
setOutput in class AbstractGenerator

getFile

public byte[] getFile(String fname)
Get a cached data file (e.g. image). This data is only cached if no data location distination is set.


generate

public void generate(ReportSheet sheet,
                     Enumeration pages)
              throws IOException
Write a collection of pages to text.

Throws:
IOException

generate

public void generate(ReportSheet sheet)
              throws IOException
Export a report.

Parameters:
sheet - report to export.
Throws:
IOException

generate

public void generate(Enumeration pages)
              throws IOException
Write a collection of pages to text.

Throws:
IOException

writePages

protected void writePages(Enumeration pages)
Write a set of pages to a text file.

Parameters:
pages - a collection of StylePage objects.

cancel

public void cancel()
Cancel the generation if one is going on.


getResourceURI

protected String getResourceURI(String name)
Get the URI to access a resource.


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