public class XpathFileGeneratorAuditListener extends AutomaticBean implements AuditListener
AutomaticBean.OutputStreamOptions| Modifier and Type | Field and Description |
|---|---|
private boolean |
closeStream
Close output stream in auditFinished.
|
private boolean |
isXmlHeaderPrinted
Determines if xml header is printed.
|
private static java.lang.String |
QUOTE_CHAR
The " quote character.
|
private java.io.PrintWriter |
writer
Helper writer that allows easy encoding and printing.
|
| Constructor and Description |
|---|
XpathFileGeneratorAuditListener(java.io.OutputStream out,
AutomaticBean.OutputStreamOptions outputStreamOptions)
Creates a new
SuppressionFileGenerator instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(AuditEvent event)
Notify that an audit error was discovered on a specific file.
|
void |
addException(AuditEvent event,
java.lang.Throwable throwable)
Notify that an exception happened while performing audit.
|
void |
auditFinished(AuditEvent event)
Notify that the audit is finished.
|
void |
auditStarted(AuditEvent event)
Notify that the audit is about to start.
|
void |
fileFinished(AuditEvent event)
Notify that audit is finished on a specific file.
|
void |
fileStarted(AuditEvent event)
Notify that audit is about to start on a specific file.
|
protected void |
finishLocalSetup()
Provides a hook to finish the part of this component's setup that
was not handled by the bean introspection.
|
private void |
printXmlHeader()
Prints XML header if only it was not printed before.
|
configure, contextualize, getConfiguration, setupChildprivate static final java.lang.String QUOTE_CHAR
private final java.io.PrintWriter writer
private final boolean closeStream
private boolean isXmlHeaderPrinted
public XpathFileGeneratorAuditListener(java.io.OutputStream out, AutomaticBean.OutputStreamOptions outputStreamOptions)
SuppressionFileGenerator instance.
Sets the output to a defined stream.out - the output streamoutputStreamOptions - if CLOSE stream should be closed in auditFinished()public void auditStarted(AuditEvent event)
AuditListenerauditStarted in interface AuditListenerevent - the event detailspublic void auditFinished(AuditEvent event)
AuditListenerauditFinished in interface AuditListenerevent - the event detailspublic void fileStarted(AuditEvent event)
AuditListenerfileStarted in interface AuditListenerevent - the event detailspublic void fileFinished(AuditEvent event)
AuditListenerfileFinished in interface AuditListenerevent - the event detailspublic void addError(AuditEvent event)
AuditListeneraddError in interface AuditListenerevent - the event detailspublic void addException(AuditEvent event, java.lang.Throwable throwable)
AuditListeneraddException in interface AuditListenerevent - the event detailsthrowable - details of the exceptionprivate void printXmlHeader()
protected void finishLocalSetup()
AutomaticBeanThe default implementation does nothing.
finishLocalSetup in class AutomaticBeanCopyright © 2001-2022. All Rights Reserved.