org.rhq.helpers.perftest.support.input
Class ZippedCsvInput

java.lang.Object
  extended by org.rhq.helpers.perftest.support.input.CsvInput
      extended by org.rhq.helpers.perftest.support.input.ZippedCsvInput
All Implemented Interfaces:
Input

public class ZippedCsvInput
extends CsvInput

Represents a zipped CSV input.

Author:
Lukas Krejci

Constructor Summary
ZippedCsvInput(ZipInputStreamProviderDecorator zipFileProvider)
           
 
Method Summary
 void close()
          Closes any system resources that were used by the producer and prepares the input to provide a new data set producer with the call to Input.getProducer().
 org.dbunit.dataset.stream.IDataSetProducer getProducer()
          The returned producer is assumed to produce a data set that can then be fed into a database.
 
Methods inherited from class org.rhq.helpers.perftest.support.input.CsvInput
getCsvProducer, getDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZippedCsvInput

public ZippedCsvInput(ZipInputStreamProviderDecorator zipFileProvider)
               throws IOException
Parameters:
zipFileProvider - a provider that creates a stream to read the zip file.
Throws:
IOException
Method Detail

close

public void close()
           throws IOException
Description copied from interface: Input
Closes any system resources that were used by the producer and prepares the input to provide a new data set producer with the call to Input.getProducer().

Specified by:
close in interface Input
Overrides:
close in class CsvInput
Throws:
IOException

getProducer

public org.dbunit.dataset.stream.IDataSetProducer getProducer()
                                                       throws Exception
Description copied from interface: Input
The returned producer is assumed to produce a data set that can then be fed into a database. (the specification of the producer is left for the subclasses to define).

Specified by:
getProducer in interface Input
Overrides:
getProducer in class CsvInput
Returns:
the dbUnit data set producer
Throws:
Exception


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.