com.android.tools.lint
Class TextReporter
java.lang.Object
com.android.tools.lint.Reporter
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.
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 |
TextReporter
public TextReporter(@NonNull
LintCliClient client,
@NonNull
LintCliFlags flags,
@NonNull
java.io.Writer writer,
boolean close)
- Constructs a new
TextReporter
- Parameters:
client
- the clientflags
- the flagswriter
- the writer to write intoclose
- whether the writer should be closed when done
TextReporter
public TextReporter(@NonNull
LintCliClient client,
@NonNull
LintCliFlags flags,
@Nullable
java.io.File file,
@NonNull
java.io.Writer writer,
boolean close)
- Constructs a new
TextReporter
- Parameters:
client
- the clientflags
- the flagsfile
- the file corresponding to the writer, if anywriter
- the writer to write intoclose
- whether the writer should be closed when done
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