com.android.tools.lint
Class TextReporter

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

@Beta
public class TextReporter
extends Reporter

A reporter which emits lint warnings as plain text strings

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
TextReporter(LintCliClient client, LintCliFlags flags, java.io.File file, java.io.Writer writer, boolean close)
          Constructs a new TextReporter
TextReporter(LintCliClient client, LintCliFlags flags, java.io.Writer writer, boolean close)
          Constructs a new TextReporter
 
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

TextReporter

public TextReporter(LintCliClient client,
                    LintCliFlags flags,
                    java.io.Writer writer,
                    boolean close)
Constructs a new TextReporter

Parameters:
client - the client
flags - the flags
writer - the writer to write into
close - whether the writer should be closed when done

TextReporter

public TextReporter(LintCliClient client,
                    LintCliFlags flags,
                    java.io.File file,
                    java.io.Writer writer,
                    boolean close)
Constructs a new TextReporter

Parameters:
client - the client
flags - the flags
file - the file corresponding to the writer, if any
writer - the writer to write into
close - whether the writer should be closed when done
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