|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.plugins.testlink.parser.Parser<T>
public abstract class Parser<T>
An abstract parser.
Constructor Summary | |
---|---|
Parser()
|
Method Summary | |
---|---|
abstract java.lang.String |
getName()
Retrives the name of the parser. |
T |
parse(java.io.File file)
Parses the content of the file. |
abstract T |
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 |
---|
public Parser()
Method Detail |
---|
public abstract java.lang.String getName()
public abstract T parse(java.io.InputStream inputStream) throws ParserException
inputStream
- the input stream.
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
ParserException
public T parse(java.io.File file) throws ParserException
parse(InputStream)
method.
file
- the file.
java.lang.Exception
ParserException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |