Style Intelligence v12.0

inetsoft.report.io
Class TemplateParser

java.lang.Object
  extended by inetsoft.report.io.TemplateParser
All Implemented Interfaces:
Parser
Direct Known Subclasses:
ReportParser

public class TemplateParser
extends Object
implements Parser

This class imports a report template file into a ReportSheet.


Field Summary
protected  int nodeIdx
           
protected  Vector nodes
           
protected  ReportSheet sheet
           
 
Constructor Summary
TemplateParser(Document doc)
          Create a template arser.
 
Method Summary
protected  int getHelperType()
          Get the helper type.
static TemplateParser getTemplateParser(InputStream input)
           
static TemplateParser getTemplateParser(InputStream input, String sourceName)
           
 boolean isCurrentVersion()
          Get original template and report file (*.srt) version.
 ReportSheet read(String dir)
          Import a report.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

protected Vector nodes

nodeIdx

protected int nodeIdx

sheet

protected ReportSheet sheet
Constructor Detail

TemplateParser

public TemplateParser(Document doc)
Create a template arser.

Method Detail

getTemplateParser

public static TemplateParser getTemplateParser(InputStream input)

getTemplateParser

public static TemplateParser getTemplateParser(InputStream input,
                                               String sourceName)

read

public ReportSheet read(String dir)
                 throws IOException
Import a report. The directory parameter is used if the report contains information with relative path. The directory serves as the current directory for the relative path. It could be null is it's not available, in this case the parser will use the current directory of the program if it has permission to get it.

Specified by:
read in interface Parser
Parameters:
dir - directory the report is imported from.
Returns:
imported report.
Throws:
IOException

getHelperType

protected int getHelperType()
Get the helper type.


isCurrentVersion

public boolean isCurrentVersion()
Get original template and report file (*.srt) version.


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