com.puppycrawl.tools.checkstyle
public class XMLLogger extends AutomaticBean implements AuditListener
Constructor Summary | |
---|---|
XMLLogger(OutputStream aOS, boolean aCloseStream)
Creates a new XMLLogger instance.
|
Method Summary | |
---|---|
void | addError(AuditEvent aEvt) {@inheritDoc} |
void | addException(AuditEvent aEvt, Throwable aThrowable) {@inheritDoc} |
void | auditFinished(AuditEvent aEvt) {@inheritDoc} |
void | auditStarted(AuditEvent aEvt) {@inheritDoc} |
String | encode(String aValue)
Escape <, > & ' and " as their entities. |
void | fileFinished(AuditEvent aEvt) {@inheritDoc} |
void | fileStarted(AuditEvent aEvt) {@inheritDoc} |
boolean | isReference(String aEnt) |
XMLLogger
instance.
Sets the output to a defined stream.Parameters: aOS the stream to write logs to. aCloseStream close aOS in auditFinished
Parameters: aValue the value to escape.
Returns: the escaped value if necessary.
Parameters: aEnt the possible entity to look for.
Returns: whether the given argument a character or entity reference