|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.rolling.helper.ActionBase
org.apache.log4j.rolling.helper.FileRenameAction
public final class FileRenameAction
File rename action.
Constructor Summary | |
---|---|
FileRenameAction(java.io.File src,
java.io.File dst,
boolean renameEmptyFiles)
Creates an FileRenameAction. |
Method Summary | |
---|---|
boolean |
execute()
Rename file. |
static boolean |
execute(java.io.File source,
java.io.File destination,
boolean renameEmptyFiles)
Rename file. |
Methods inherited from class org.apache.log4j.rolling.helper.ActionBase |
---|
close, isComplete, reportException, run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileRenameAction(java.io.File src, java.io.File dst, boolean renameEmptyFiles)
src
- current file name.dst
- new file name.renameEmptyFiles
- if true, rename file even if empty, otherwise delete empty files.Method Detail |
---|
public boolean execute()
execute
in interface Action
execute
in class ActionBase
public static boolean execute(java.io.File source, java.io.File destination, boolean renameEmptyFiles)
source
- current file name.destination
- new file name.renameEmptyFiles
- if true, rename file even if empty, otherwise delete empty files.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010 The Apache Software Foundation. Licensed under the Apache License, Version 2.0
Apache Extras Companion for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.