org.norther.tammi.sprig.report.export
Interface Exporter

All Known Implementing Classes:
CSVExporter, CSVExporter, HtmlExporter, HtmlExporter, JasperExporter, JFreeExporter, PDFExporter, PDFExporter, XLSExporter, XLSExporter, XMLExporter, XMLExporter

public interface Exporter

An interface to report exporters.

Author:
Ilkka Priha

Method Summary
 void export(ReportLayout[] layouts, File file, String encoding)
          Exports the specified layout to a file.
 void export(ReportLayout[] layouts, OutputStream output, String encoding)
          Exports the specified layout to a stream.
 void export(ReportLayout[] layouts, Writer writer)
          Exports the specified layout to a writer.
 boolean isBinary()
          Checks whether binary.
 boolean isEmbedded()
          Checks whether embedded.
 void setEmbedded(boolean flag)
          Sets whether embedded.
 

Method Detail

isBinary

boolean isBinary()
Checks whether binary.

Returns:
true if binary, false otherwise.

isEmbedded

boolean isEmbedded()
Checks whether embedded.

Returns:
true if embedded, false otherwise.

setEmbedded

void setEmbedded(boolean flag)
Sets whether embedded.

Parameters:
flag - true if embedded, false otherwise.

export

void export(ReportLayout[] layouts,
            Writer writer)
            throws LogException
Exports the specified layout to a writer.

Parameters:
layouts - the report layouts.
writer - the writer.
Throws:
LogException - on errors.

export

void export(ReportLayout[] layouts,
            File file,
            String encoding)
            throws LogException
Exports the specified layout to a file.

Parameters:
layouts - the report layouts.
file - the output file.
encoding - the encoding.
Throws:
LogException - on errors.

export

void export(ReportLayout[] layouts,
            OutputStream output,
            String encoding)
            throws LogException
Exports the specified layout to a stream.

Parameters:
layouts - the report layouts.
output - the output stream.
encoding - the encoding.
Throws:
LogException - on errors.


Copyright © 2004 The Norther Organization. All rights reserved.