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

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

public class XmlInput
extends Object
implements Input

Implements the Input interface for the XML files using the FlatXmlProducer.

Author:
Lukas Krejci

Constructor Summary
XmlInput(InputStreamProvider provider, boolean doClose)
           
 
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlInput

public XmlInput(InputStreamProvider provider,
                boolean doClose)
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
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
Returns:
the dbUnit data set producer
Throws:
Exception


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