hudson.plugins.testlink.parser.tap
Class TAPParser

java.lang.Object
  extended by hudson.plugins.testlink.parser.Parser<org.tap4j.model.TestSet>
      extended by hudson.plugins.testlink.parser.tap.TAPParser
All Implemented Interfaces:
java.io.Serializable

public class TAPParser
extends Parser<org.tap4j.model.TestSet>

The TAP Parser.

Since:
2.0
Author:
Bruno P. Kinoshita
See Also:
Serialized Form

Constructor Summary
TAPParser()
          Default constructor.
 
Method Summary
 java.lang.String getName()
          Retrives the name of the parser.
 org.tap4j.model.TestSet parse(java.io.File file)
          Parses the content of the file.
 org.tap4j.model.TestSet parse(java.io.InputStream inputStream)
          Parses the content of an input stream and returns a different object depending on the type of the parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TAPParser

public TAPParser()
Default constructor. Initializes the TAP Consumer.

Method Detail

parse

public org.tap4j.model.TestSet parse(java.io.InputStream inputStream)
                              throws ParserException
Description copied from class: Parser
Parses the content of an input stream and returns a different object depending on the type of the parser.

Specified by:
parse in class Parser<org.tap4j.model.TestSet>
Parameters:
inputStream - the input stream.
Returns:
Resulting object.
Throws:
ParserException

parse

public org.tap4j.model.TestSet parse(java.io.File file)
                              throws ParserException
Description copied from class: Parser
Parses the content of the file. This method only creates an input stream and then calls the Parser.parse(InputStream) method.

Overrides:
parse in class Parser<org.tap4j.model.TestSet>
Parameters:
file - the file.
Returns:
Resulting object.
Throws:
ParserException

getName

public java.lang.String getName()
Description copied from class: Parser
Retrives the name of the parser.

Specified by:
getName in class Parser<org.tap4j.model.TestSet>
Returns:
the name of the parser.


Copyright © 2010-2011 the Jenkins TestLink plug-in team-2011 Jenkins. All Rights Reserved.