|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.rolling.helper.RenameUtil
public class RenameUtil
Utility class to help solving problems encountered while renaming files.
Field Summary |
---|
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase |
---|
context |
Constructor Summary | |
---|---|
RenameUtil()
|
Method Summary | |
---|---|
void |
rename(java.lang.String from,
java.lang.String to)
A robust file renaming method which in case of failure falls back to renaming by copying. |
void |
renameByCopying(java.lang.String from,
java.lang.String to)
|
java.lang.String |
toString()
|
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
---|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RenameUtil()
Method Detail |
---|
public void rename(java.lang.String from, java.lang.String to) throws RolloverFailure
from
- to
-
RolloverFailure
public void renameByCopying(java.lang.String from, java.lang.String to) throws RolloverFailure
RolloverFailure
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |