Style Intelligence v12.0

inetsoft.report.io
Class XMLGenerator

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

public class XMLGenerator
extends AbstractGenerator

Generator that creates a data-centric XML document from a report.

Since:
10.3

Field Summary
 
Fields inherited from class inetsoft.report.io.AbstractGenerator
docInfo
 
Constructor Summary
XMLGenerator(OutputStream output)
          Creates a new instance of XMLFormatter.
XMLGenerator(OutputStream output, boolean indent)
          Creates a new instance of XMLFormatter.
 
Method Summary
 void generate(ReportSheet sheet)
          Export a report.
 void generate(ReportSheet sheet, Enumeration pages)
          Write a collection of pages to text.
 void setOutput(OutputStream output)
          Set the output stream of this generator.
 
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
 

Constructor Detail

XMLGenerator

public XMLGenerator(OutputStream output)
Creates a new instance of XMLFormatter.

Parameters:
output - the output stream to which the XML will be written.

XMLGenerator

public XMLGenerator(OutputStream output,
                    boolean indent)
Creates a new instance of XMLFormatter.

Parameters:
output - the output stream to which the XML will be written.
indent - true to indent the written XML.
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

generate

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

Parameters:
sheet - report to export.
Throws:
IOException

generate

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

Throws:
IOException

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