uk.org.simonsite.log4j.appender
Class TimeSuffixHelper

java.lang.Object
  extended by uk.org.simonsite.log4j.appender.TimeSuffixHelper

final class TimeSuffixHelper
extends Object

Responsible for encapsulating time-oriented operations on log filenames or partial log filenames via the concatenation methods.

Version:
2.4
Author:
Simon Park

Constructor Summary
TimeSuffixHelper(AppenderRollingProperties properties)
          Initialise to format log filenames and partial filenames using the current default Locale and TimeZone.
 
Method Summary
(package private)  String toString(long timeForSuffix)
          Returns the time part, used in a log filename suffix, for the period within which the specified time falls.
(package private)  long toTime(String filenameTimePart)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeSuffixHelper

TimeSuffixHelper(AppenderRollingProperties properties)
Initialise to format log filenames and partial filenames using the current default Locale and TimeZone.

Method Detail

toTime

final long toTime(String filenameTimePart)

toString

final String toString(long timeForSuffix)
Returns the time part, used in a log filename suffix, for the period within which the specified time falls.

Parameters:
timeForSuffix -
Returns:
Time part of a log filename.