org.tap4j.consumer
Class TapConsumerImpl

Package class diagram package TapConsumerImpl
java.lang.Object
  extended by org.tap4j.consumer.TapConsumerImpl
All Implemented Interfaces:
TapConsumer

public class TapConsumerImpl
extends Object
implements TapConsumer

Implementation of a TAP Consumer. It can use different TAP parsers. The parser can change the behaviour of the consumer, as the latter delegates the parsing and TAP model loading to the former.

Since:
1.0

Constructor Summary
TapConsumerImpl()
          Default constructor.
TapConsumerImpl(Parser parser)
          Constructor with a parser.
 
Method Summary
 Parser getParser()
          Returns the Parser used in the Consumer.
 TestSet getTestSet()
          Returns the TestSet resulted from parsing a TAP File or TAP Stream.
 TestSet load(File file)
          Parses a TAP File.
 TestSet load(String tapStream)
          Parses a TAP Stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TapConsumerImpl

public TapConsumerImpl()
Default constructor.


TapConsumerImpl

public TapConsumerImpl(Parser parser)
Constructor with a parser.

Parameters:
parser - a parser
Method Detail

getTestSet

public TestSet getTestSet()
Description copied from interface: TapConsumer
Returns the TestSet resulted from parsing a TAP File or TAP Stream.

Specified by:
getTestSet in interface TapConsumer
Returns:
TestSet

load

public TestSet load(File file)
Description copied from interface: TapConsumer
Parses a TAP File.

Specified by:
load in interface TapConsumer
Parameters:
file - TAP File.
Returns:
TestSet

load

public TestSet load(String tapStream)
Description copied from interface: TapConsumer
Parses a TAP Stream.

Specified by:
load in interface TapConsumer
Parameters:
tapStream - TAP Stream
Returns:
TestSet

getParser

public Parser getParser()
Description copied from interface: TapConsumer
Returns the Parser used in the Consumer.

Specified by:
getParser in interface TapConsumer
Returns:
Parser


Copyright © 2010-2012 TupiLabs. All Rights Reserved.