com.android.tools.lint
Class XmlReporter
java.lang.Object
com.android.tools.lint.Reporter
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.
Method Summary |
void |
write(int errorCount,
int warningCount,
java.util.List<Warning> issues)
Write the given warnings into the report |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlReporter
public XmlReporter(LintCliClient client,
java.io.File output)
throws java.io.IOException
- Constructs a new
XmlReporter
- Parameters:
client
- the clientoutput
- the output file
- Throws:
java.io.IOException
- if an error occurs
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 errorswarningCount
- the number of warningsissues
- the issues to be reported
- Throws:
java.io.IOException
- if an error occurs