ru.onego.industrial.catalog.reports
Class CSVReport

java.lang.Object
  extended by java.util.Observable
      extended by ru.onego.industrial.catalog.reports.AbstractReport
          extended by ru.onego.industrial.catalog.reports.CSVReport
All Implemented Interfaces:
Report

public class CSVReport
extends AbstractReport

Creates report of comma separated format


Constructor Summary
CSVReport()
           
 
Method Summary
 void createReport(java.lang.String filename)
          Creates new report and stores it to specified file
 java.lang.String getName()
          Returns report name.
 java.lang.String getStdFileExt()
          Return extension of the report file.
 
Methods inherited from class ru.onego.industrial.catalog.reports.AbstractReport
getCatalog, setCatalog
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVReport

public CSVReport()
Method Detail

createReport

public void createReport(java.lang.String filename)
                  throws ru.onego.industrial.catalog.reports.ReportException
Creates new report and stores it to specified file

Specified by:
createReport in interface Report
Specified by:
createReport in class AbstractReport
Parameters:
filename - filename of the output report file
Throws:
ReportException - If any error occures during report creating

getName

public java.lang.String getName()
Returns report name.

Specified by:
getName in interface Report
Specified by:
getName in class AbstractReport
Returns:
Name of the report

getStdFileExt

public java.lang.String getStdFileExt()
Return extension of the report file.

Specified by:
getStdFileExt in interface Report
Specified by:
getStdFileExt in class AbstractReport
Returns:
String representing extension