com.puppycrawl.tools.checkstyle
Class XMLLogger
- AuditListener, EventListener, Configurable, Contextualizable
Simple XML logger.
It outputs everything in UTF-8 (default XML encoding is UTF-8) in case
we want to localize error messages or simply that filenames are
localized and takes care about escaping as well.
XMLLogger(OutputStream aOS, boolean aCloseStream) - Creates a new
XMLLogger instance.
|
XMLLogger
public XMLLogger(OutputStream aOS,
boolean aCloseStream)
Creates a new XMLLogger
instance.
Sets the output to a defined stream.
aOS
- the stream to write logs to.aCloseStream
- close aOS in auditFinished
encode
public String encode(String aValue)
Escape <, > & ' and " as their entities.
aValue
- the value to escape.
- the escaped value if necessary.
isReference
public boolean isReference(String aEnt)
aEnt
- the possible entity to look for.
- whether the given argument a character or entity reference