com.android.tools.lint
Class HtmlReporter

java.lang.Object
  extended by com.android.tools.lint.Reporter
      extended by com.android.tools.lint.HtmlReporter
Direct Known Subclasses:
MultiProjectHtmlReporter

@Beta
public class HtmlReporter
extends Reporter

A reporter which emits lint results into an HTML 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
protected  java.io.Writer mWriter
           
 
Fields inherited from class com.android.tools.lint.Reporter
mBundleResources, mClient, mNameToFile, mOutput, mResources, mResourceUrl, mSimpleFormat, mTitle, mUrlMap
 
Constructor Summary
HtmlReporter(LintCliClient client, java.io.File output)
          Creates a new HtmlReporter
 
Method Summary
protected  java.util.Map<com.android.tools.lint.detector.api.Issue,java.lang.String> computeMissingIssues(java.util.List<Warning> warnings)
           
 void write(int errorCount, int warningCount, java.util.List<Warning> issues)
          Write the given warnings into the report
protected  void writeStyleSheet()
           
 
Methods inherited from class com.android.tools.lint.Reporter
addLocalResources, getRelativeResourceUrl, getTitle, isSimpleFormat, setBundleResources, setSimpleFormat, setTitle, setUrlMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mWriter

protected final java.io.Writer mWriter
Constructor Detail

HtmlReporter

public HtmlReporter(LintCliClient client,
                    java.io.File output)
             throws java.io.IOException
Creates a new HtmlReporter

Parameters:
client - the associated 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

computeMissingIssues

protected java.util.Map<com.android.tools.lint.detector.api.Issue,java.lang.String> computeMissingIssues(java.util.List<Warning> warnings)

writeStyleSheet

protected void writeStyleSheet()
                        throws java.io.IOException
Throws:
java.io.IOException