public class PrintStreamErrorReportGenerator extends java.lang.Object implements SortingErrorManager.ErrorReportGenerator
It collaborates with a SourceExcerptProvider
via a MessageFormatter
to display
error messages with source context.
Constructor and Description |
---|
PrintStreamErrorReportGenerator(MessageFormatter formatter,
java.io.PrintStream stream,
int summaryDetailLevel)
Creates an error report generator.
|
Modifier and Type | Method and Description |
---|---|
void |
generateReport(SortingErrorManager manager) |
public PrintStreamErrorReportGenerator(MessageFormatter formatter, java.io.PrintStream stream, int summaryDetailLevel)
formatter
- the message formatter used to format the messagesstream
- the stream on which the errors and warnings should be printed. This class does
not close the streampublic void generateReport(SortingErrorManager manager)
generateReport
in interface SortingErrorManager.ErrorReportGenerator
Copyright © 2009-2020 Google. All Rights Reserved.