public class DefaultIOListener extends Object implements IOListener
DefaultIOListener
implements an IOListener
that
writes debug/error output to the logger
specified in the constructor.Constructor and Description |
---|
DefaultIOListener(org.slf4j.Logger ioLog)
Creates a new
DefaultIOListener |
Modifier and Type | Method and Description |
---|---|
void |
onBegin(IOHandler handler,
IOContext ioContext)
The import/export context has been passed to the given
IOHandler . |
void |
onEnd(IOHandler handler,
IOContext ioContext,
boolean success)
The specified
IOHandler finished. |
void |
onError(IOHandler ioHandler,
IOContext ioContext,
Exception e)
An exception occurred during import/export within the specified
IOHandler . |
public DefaultIOListener(org.slf4j.Logger ioLog)
DefaultIOListener
public void onBegin(IOHandler handler, IOContext ioContext)
IOListener
IOHandler
.onBegin
in interface IOListener
IOListener.onBegin(IOHandler, IOContext)
public void onEnd(IOHandler handler, IOContext ioContext, boolean success)
IOListener
IOHandler
finished. A boolean flag indicates
whether the handler was able to run the import/export.onEnd
in interface IOListener
IOListener.onEnd(IOHandler, IOContext, boolean)
public void onError(IOHandler ioHandler, IOContext ioContext, Exception e)
IOListener
IOHandler
.onError
in interface IOListener
IOListener.onError(IOHandler, IOContext, Exception)
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.