org.exoplatform.services.jcr.ext.replication.recovery
Class FileNameFactory

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.replication.recovery.FileNameFactory

public class FileNameFactory
extends java.lang.Object

Created by The eXo Platform SAS.

Version:
$Id: FileNameFactory.java 35186 2009-08-07 14:23:43Z pnedonosko $
Author:
Alex Reshetnyak

Constructor Summary
FileNameFactory()
           
 
Method Summary
 java.util.Calendar getDateFromFileName(java.lang.String fName)
          getDateFromFileName.
 java.lang.String getRandomSubPath()
          getRandomSubPath.
 java.lang.String getStrDate(java.util.Calendar c)
          getStrDate.
 java.lang.String getStrTime(java.util.Calendar c)
          getStrTime.
 java.lang.String getTimeStampName(java.util.Calendar c)
          getTimeStampName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileNameFactory

public FileNameFactory()
Method Detail

getStrDate

public java.lang.String getStrDate(java.util.Calendar c)
getStrDate.

Parameters:
c - the date
Returns:
String the string of date

getStrTime

public java.lang.String getStrTime(java.util.Calendar c)
getStrTime.

Parameters:
c - the date
Returns:
String the string of time

getTimeStampName

public java.lang.String getTimeStampName(java.util.Calendar c)
getTimeStampName.

Parameters:
c - the date
Returns:
String return the date and time as string

getRandomSubPath

public java.lang.String getRandomSubPath()
getRandomSubPath.

Returns:
String return the sub path as string

getDateFromFileName

public java.util.Calendar getDateFromFileName(java.lang.String fName)
                                       throws java.text.ParseException
getDateFromFileName.

Parameters:
fName - the name of file
Returns:
Calendar return the date from name of file
Throws:
java.text.ParseException - will be generated the ParseException


Copyright © 2010 eXo Platform SAS. All Rights Reserved.