info.joseluismartin.util.processor
Interface FileProcessor

All Known Implementing Classes:
JasperReportFileProcessor, JasperReportXMLFileProcessor

public interface FileProcessor

Author:
Jose A. Corbacho

Method Summary
 byte[] getRawData()
          Returns a raw set of the data of this file
 void processFile(byte[] rawData)
          Process the parameter file passed as raw data
 void processFile(File file, String outputType, boolean hasQuery)
          Process the parameter file
 void setConnection(Connection conn)
          Set the database connection to be used to process the file
 void setParameters(Map<String,Object> parameters)
           
 void setService(net.sf.jasperreports.engine.JRDataSource source)
           
 

Method Detail

processFile

void processFile(File file,
                 String outputType,
                 boolean hasQuery)
Process the parameter file

Parameters:
file -

processFile

void processFile(byte[] rawData)
Process the parameter file passed as raw data

Parameters:
rawData -

getRawData

byte[] getRawData()
Returns a raw set of the data of this file

Returns:
report as raw data

setConnection

void setConnection(Connection conn)
Set the database connection to be used to process the file

Parameters:
conn -

setService

void setService(net.sf.jasperreports.engine.JRDataSource source)

setParameters

void setParameters(Map<String,Object> parameters)


Copyright © 2012 JDAL. All Rights Reserved.