hudson.plugins.violations.parse
Class ParseXML

java.lang.Object
  extended by hudson.plugins.violations.parse.ParseXML

public final class ParseXML
extends java.lang.Object

Control class to parse xml files.


Method Summary
static void parse(java.io.File xmlFile, AbstractParser xmlParser)
          Parse an xml file using a parser object.
static void parse(java.io.InputStream in, AbstractParser xmlParser)
          Parse an Input stream using a parser object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static void parse(java.io.InputStream in,
                         AbstractParser xmlParser)
                  throws java.io.IOException
Parse an Input stream using a parser object.

Parameters:
in - the stream to parse.
xmlParser - the parser object.
Throws:
java.io.IOException - if there is a problem.

parse

public static void parse(java.io.File xmlFile,
                         AbstractParser xmlParser)
                  throws java.io.IOException
Parse an xml file using a parser object.

Parameters:
xmlFile - the file to parse.
xmlParser - the parser object.
Throws:
java.io.IOException - if there is a problem.


Copyright © 2004-2012. All Rights Reserved.