buldocs Ltd.
xnsdoc 1.2.1 Java API

com.xnsdoc
Class ConsoleListener

java.lang.Object
  extended bycom.xnsdoc.ConsoleListener
All Implemented Interfaces:
ProcessorListener

public final class ConsoleListener
extends java.lang.Object
implements ProcessorListener

Implementation of the ProcessorListener interface that simple logs everything to the console.


Field Summary
 
Fields inherited from interface com.xnsdoc.ProcessorListener
DEBUG, ERROR, FATAL, INFO, WARN
 
Constructor Summary
ConsoleListener()
          Constructor.
ConsoleListener(int level)
          Constructor.
 
Method Summary
 void debug(java.lang.String message)
          Log a message with debug log level.
 void end()
          Signals end of processing.
 void error(java.lang.String message)
          Log a message with error log level.
 void fatal(java.lang.String message)
          Log a message with fatal log level.
 int getLevel()
          Returns the current verbosity level.
 void info(java.lang.String message)
          Log a message with info log level.
 void setLevel(int level)
          Sets the verbosity level.
 void start(int componentCount)
          Signals start of processing.
 void warn(java.lang.String message)
          Log a message with warn log level.
 void worked(java.lang.String componentDescription)
          Signals start of processinga component.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleListener

public ConsoleListener()
Constructor.


ConsoleListener

public ConsoleListener(int level)
Constructor.

Parameters:
level - debug level.
Method Detail

debug

public void debug(java.lang.String message)
Description copied from interface: ProcessorListener
Log a message with debug log level.

Specified by:
debug in interface ProcessorListener
Parameters:
message - the message of the event
See Also:
{@inheritDoc}

end

public void end()
Description copied from interface: ProcessorListener
Signals end of processing.

Specified by:
end in interface ProcessorListener
See Also:
{@inheritDoc}

error

public void error(java.lang.String message)
Description copied from interface: ProcessorListener
Log a message with error log level.

Specified by:
error in interface ProcessorListener
Parameters:
message - the message of the event
See Also:
{@inheritDoc}

fatal

public void fatal(java.lang.String message)
Description copied from interface: ProcessorListener
Log a message with fatal log level.

Specified by:
fatal in interface ProcessorListener
Parameters:
message - the message of the event
See Also:
{@inheritDoc}

getLevel

public int getLevel()
Description copied from interface: ProcessorListener
Returns the current verbosity level.

Specified by:
getLevel in interface ProcessorListener
Returns:
current verbosity level
See Also:
{@inheritDoc}

info

public void info(java.lang.String message)
Description copied from interface: ProcessorListener
Log a message with info log level.

Specified by:
info in interface ProcessorListener
Parameters:
message - the message of the event
See Also:
{@inheritDoc}

setLevel

public void setLevel(int level)
Description copied from interface: ProcessorListener
Sets the verbosity level.

Specified by:
setLevel in interface ProcessorListener
Parameters:
level - the new verbosity level
See Also:
{@inheritDoc}

start

public void start(int componentCount)
Description copied from interface: ProcessorListener
Signals start of processing.

Specified by:
start in interface ProcessorListener
Parameters:
componentCount - total number components to process
See Also:
{@inheritDoc}

warn

public void warn(java.lang.String message)
Description copied from interface: ProcessorListener
Log a message with warn log level.

Specified by:
warn in interface ProcessorListener
Parameters:
message - the message of the event
See Also:
{@inheritDoc}

worked

public void worked(java.lang.String componentDescription)
Description copied from interface: ProcessorListener
Signals start of processinga component.

Specified by:
worked in interface ProcessorListener
Parameters:
componentDescription - description of currently processed components
See Also:
{@inheritDoc}

buldocs Ltd.
xnsdoc 1.2.1 Java API

Copyright 2005 buldocs Ltd. All rights reserved.
Use is subject to license terms.