Top Description Methods
jdk.javadoc.doclet

public Interface Reporter

Known Direct Implementers
jdk.javadoc.internal.tool.JavadocLog
Imports
java.io.PrintWriter, java.util.Locale, javax.lang.model.element.Element, javax.tools.Diagnostic, .FileObject, com.sun.source.doctree.CommentTree, .DocTypeTree, .ReferenceTree, .TextTree, com.sun.source.util.DocTreePath

Interface for reporting diagnostics and other messages.

Diagnostics consist of a diagnostic kind and a message, and may additionally be associated with an element, a tree node in a documentation comment, or an arbitrary position in a given file. Other messages may be written directly to one of two streams that are informally for use by "standard output" and "diagnostic output", where "standard output" means the output that is the expected result of executing some operation, such as the command-line help that is generated when using a --help option, and "diagnostic output" refers to any errors, warnings and other output that is a side effect of executing the operation.

The exact manner in which diagnostics are output is unspecified and depends on the enclosing context. For example:

Since
9

Method Summary

Modifier and TypeMethod and Description
public default PrintWriter

Returns:

the writer
getDiagnosticWriter
()

Returns a writer that can be used to write diagnostic output, or null if no such writer is available.

public default PrintWriter

Returns:

the writer
getStandardWriter
()

Returns a writer that can be used to write non-diagnostic output, or null if no such writer is available.

Method Detail

getDiagnosticWriterback to summary
public default PrintWriter getDiagnosticWriter()

Returns a writer that can be used to write diagnostic output, or null if no such writer is available.

API Note

The value may or may not be the same as that returned by getStandardWriter().

Implementation Specification

This implementation returns null. The implementation provided by the javadoc tool to initialize a doclet always returns a non-null value.

Returns:PrintWriter

the writer

Since
17
getStandardWriterback to summary
public default PrintWriter getStandardWriter()

Returns a writer that can be used to write non-diagnostic output, or null if no such writer is available.

API Note

The value may or may not be the same as that returned by getDiagnosticWriter().

Implementation Specification

This implementation returns null. The implementation provided by the javadoc tool to initialize a doclet always returns a non-null value.

Returns:PrintWriter

the writer

Since
17