|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.iges.anagram.Log.Rotater
Produces rotating filenames either monthly, weekly, or daily.
Field Summary | |
protected java.util.Calendar |
cal
|
protected java.text.DateFormat |
fileFormat
|
protected int |
frequency
|
protected int |
value
|
Constructor Summary | |
protected |
Log.Rotater(java.lang.String frequencyString)
Accepts either "month", "week", or "day". |
Method Summary | |
protected void |
check()
Re-opens logfile if the name has rotated. |
protected int |
computeValue()
Calculates the filename for the current time |
protected java.lang.String |
getCurrentFileName()
Returns the most recently calculated filename |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.text.DateFormat fileFormat
protected java.util.Calendar cal
protected int value
protected int frequency
Constructor Detail |
protected Log.Rotater(java.lang.String frequencyString) throws AnagramException
Method Detail |
protected void check()
protected int computeValue()
protected java.lang.String getCurrentFileName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |