hudson.plugins.findbugs.parser
Class PlainFindBugsParser

java.lang.Object
  extended by hudson.plugins.findbugs.parser.PlainFindBugsParser
Direct Known Subclasses:
NativeFindBugsParser

public class PlainFindBugsParser
extends java.lang.Object

A parser for the native FindBugs XML files (ant task, batch file or maven-findbugs-plugin >= 1.2).

Author:
Ulli Hafner

Constructor Summary
PlainFindBugsParser()
           
 
Method Summary
static java.net.URL[] createPluginUrls()
          Returns an URL array containing the references to the FindBugs libraries.
 java.util.Collection<FileAnnotation> parse(java.io.InputStream file, java.lang.String moduleRoot, java.lang.String moduleName)
          Returns the parsed FindBugs analysis file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainFindBugsParser

public PlainFindBugsParser()
Method Detail

parse

public java.util.Collection<FileAnnotation> parse(java.io.InputStream file,
                                                  java.lang.String moduleRoot,
                                                  java.lang.String moduleName)
                                           throws java.io.IOException,
                                                  org.dom4j.DocumentException
Returns the parsed FindBugs analysis file. This scanner accepts files in the native FindBugs format.

Parameters:
file - the FindBugs analysis file
moduleRoot - the root path of the maven module
moduleName - name of maven module
Returns:
the parsed result (stored in the module instance)
Throws:
java.io.IOException - if the file could not be parsed
org.dom4j.DocumentException

createPluginUrls

public static java.net.URL[] createPluginUrls()
                                       throws java.net.MalformedURLException
Returns an URL array containing the references to the FindBugs libraries.

Returns:
URL array containing the references to the FindBugs libraries
Throws:
java.net.MalformedURLException


Copyright © 2008. All Rights Reserved.