Style Intelligence v12.0

inetsoft.report.io
Interface ExportFactory


public interface ExportFactory

Interface for factory classes that create export generators and formatters.

Since:
7.0

Field Summary
static int FORMATTER
          Type flag indicating that the factory creates a Formatter instance.
static int GENERATOR
          Type flag indicating that the factory creates a Generator instance.
static int MULTIPLE_TIMES
          The exporter will access every style page for multiple times.
static int ONCE
          The exporter will access every style page once.
static int ZERO
          The exporter will not access style page.
 
Method Summary
 Object createExporter(OutputStream output, Object data)
          Creates the generator or formatter for the export type supported by this factory.
 int getExporterType()
          Gets the type of exporter created by this factory.
 int getPageAccess()
          Get the page access type, 0 - not required, 1 - once, 2 - more than once.
 

Field Detail

GENERATOR

static final int GENERATOR
Type flag indicating that the factory creates a Generator instance.

See Also:
Constant Field Values

FORMATTER

static final int FORMATTER
Type flag indicating that the factory creates a Formatter instance.

See Also:
Constant Field Values

ZERO

static final int ZERO
The exporter will not access style page.

See Also:
Constant Field Values

ONCE

static final int ONCE
The exporter will access every style page once.

See Also:
Constant Field Values

MULTIPLE_TIMES

static final int MULTIPLE_TIMES
The exporter will access every style page for multiple times.

See Also:
Constant Field Values
Method Detail

createExporter

Object createExporter(OutputStream output,
                      Object data)
Creates the generator or formatter for the export type supported by this factory. The returned object must be an instance of Generator or Formatter as determined by the value returned by getType.

Parameters:
output - the output stream to which the exported file will be written.
data - data specific to the type of export.
Returns:
a Generator or Formatter object used to export a report.

getExporterType

int getExporterType()
Gets the type of exporter created by this factory. Returns either GENERATOR or FORMATTER.

Returns:
the type of exporter.

getPageAccess

int getPageAccess()
Get the page access type, 0 - not required, 1 - once, 2 - more than once.


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