com.android.tools.lint
Class XmlReporter

java.lang.Object
  extended by com.android.tools.lint.Reporter
      extended by com.android.tools.lint.XmlReporter

@Beta
public class XmlReporter
extends Reporter

A reporter which emits lint results into an XML report.

NOTE: This is not a public or final API; if you rely on this be prepared to adjust your code for the next tools release.


Field Summary
 
Fields inherited from class com.android.tools.lint.Reporter
mBundleResources, mClient, mDisplayEmpty, mNameToFile, mOutput, mResources, mResourceUrl, mSimpleFormat, mTitle, mUrlMap
 
Constructor Summary
XmlReporter(LintCliClient client, java.io.File output)
          Constructs a new XmlReporter
 
Method Summary
 void write(int errorCount, int warningCount, java.util.List<Warning> issues)
          Write the given warnings into the report
 
Methods inherited from class com.android.tools.lint.Reporter
addLocalResources, getRelativeResourceUrl, getTitle, isDisplayEmpty, isSimpleFormat, setBundleResources, setDisplayEmpty, setSimpleFormat, setTitle, setUrlMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlReporter

public XmlReporter(LintCliClient client,
                   java.io.File output)
            throws java.io.IOException
Constructs a new XmlReporter

Parameters:
client - the client
output - the output file
Throws:
java.io.IOException - if an error occurs
Method Detail

write

public void write(int errorCount,
                  int warningCount,
                  java.util.List<Warning> issues)
           throws java.io.IOException
Description copied from class: Reporter
Write the given warnings into the report

Specified by:
write in class Reporter
Parameters:
errorCount - the number of errors
warningCount - the number of warnings
issues - the issues to be reported
Throws:
java.io.IOException - if an error occurs