gov.nasa.pds.tools.report
Class Report

java.lang.Object
  extended by gov.nasa.pds.tools.report.Report

public class Report
extends java.lang.Object

Class to generate a human-readable report from an XML log.

Author:
mcayanan

Constructor Summary
Report(java.io.InputStream xml, java.lang.String stylesheet)
          Constructor
 
Method Summary
 void generateReport(java.io.OutputStream output, java.lang.String level)
          Generates the human-readable report.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Report

public Report(java.io.InputStream xml,
              java.lang.String stylesheet)
Constructor

Parameters:
xml - A stream representation of the XML log to transform.
stylesheet - An xsl stylesheet file name.
Method Detail

generateReport

public void generateReport(java.io.OutputStream output,
                           java.lang.String level)
                    throws javax.xml.transform.TransformerException
Generates the human-readable report.

Parameters:
output - The stream where the human-readable report will be produced.
level - Specify the severity level and above to include in the report. Valid values are 'info', 'warning', and 'error'.
Throws:
SeverityException - For an invalid severity level.
javax.xml.transform.TransformerException - If there was an error producing the report.


Copyright © 2005-2007 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.