uk.org.retep.util.io
Class AbstractComplexFileVisitor<T extends ComplexFile>
java.lang.Object
uk.org.retep.util.io.AbstractComplexFileVisitor<T>
- Type Parameters:
T - ComplexFile implementation
- All Implemented Interfaces:
- ComplexFileVisitor<T>
public abstract class AbstractComplexFileVisitor<T extends ComplexFile>
- extends java.lang.Object
- implements ComplexFileVisitor<T>
An abstract implementation of ComplexFileVisitor which can log a message every time
a visit on a File returns true.
Note: If the supplied Log instance is null, then no logging is performed.
- Author:
- peter
|
Method Summary |
protected void |
error(java.lang.String msg,
java.lang.Object... args)
|
protected void |
fatal(java.lang.String msg,
java.lang.Object... args)
|
protected java.lang.String |
getMessage()
|
protected void |
info(java.lang.String msg,
java.lang.Object... args)
|
protected void |
warn(java.lang.String msg,
java.lang.Object... args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractComplexFileVisitor
public AbstractComplexFileVisitor()
- Create a visitor with no logging
AbstractComplexFileVisitor
public AbstractComplexFileVisitor(Log log)
- Equivalent to new AbstractFileVisitor( log, "Modified %s" );
- Parameters:
log - Log to use, ignored if null
AbstractComplexFileVisitor
public AbstractComplexFileVisitor(Log log,
java.lang.String message)
- Construct a visitor with a Log and a message to log whenever an action is
performed and returns true.
- Parameters:
log - Log to use, ignored if nullmessage - The message to log when an action is performed and log is
not null. One instance of %s is permitted, which is replaced by
File.getPath()
info
protected final void info(java.lang.String msg,
java.lang.Object... args)
warn
protected final void warn(java.lang.String msg,
java.lang.Object... args)
error
protected final void error(java.lang.String msg,
java.lang.Object... args)
fatal
protected final void fatal(java.lang.String msg,
java.lang.Object... args)
getMessage
protected final java.lang.String getMessage()
Copyright © 1998-2010 Retep Development Group. All Rights Reserved.