org.tap4j.producer
Class TapProducer

Package class diagram package TapProducer
java.lang.Object
  extended by org.tap4j.producer.TapProducer
All Implemented Interfaces:
Producer

public class TapProducer
extends Object
implements Producer

TAP Producer is responsible for writing the TAP Stream onto some media.

Since:
1.0

Constructor Summary
TapProducer()
          Default constructor.
TapProducer(Representer representer)
          Constructor with parameter.
 
Method Summary
 String dump(TestSet testSet)
          Returns a String representing the TAP Stream produced from a TestSet.
 void dump(TestSet testSet, File output)
          Writes the TAP Stream into an output File.
 void dump(TestSet testSet, Writer writer)
          Writes the TAP Stream produced from a TestSet into a Writer.
 Representer getRepresenter()
          Returns the Representer used in the Producer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TapProducer

public TapProducer()
Default constructor.


TapProducer

public TapProducer(Representer representer)
Constructor with parameter.

Parameters:
representer -
Method Detail

dump

public String dump(TestSet testSet)
Description copied from interface: Producer
Returns a String representing the TAP Stream produced from a TestSet.

Specified by:
dump in interface Producer
Parameters:
testSet - TestSet
Returns:
TAP Stream

dump

public void dump(TestSet testSet,
                 Writer writer)
Description copied from interface: Producer
Writes the TAP Stream produced from a TestSet into a Writer.

Specified by:
dump in interface Producer
Parameters:
testSet - TestSet
writer - Writer

dump

public void dump(TestSet testSet,
                 File output)
Description copied from interface: Producer
Writes the TAP Stream into an output File.

Specified by:
dump in interface Producer
Parameters:
testSet - TestSet
output - Output File

getRepresenter

public Representer getRepresenter()
Description copied from interface: Producer
Returns the Representer used in the Producer.

Specified by:
getRepresenter in interface Producer
Returns:
Representer


Copyright © 2010-2012 TupiLabs. All Rights Reserved.