org.eclipse.emf.cdo.common.util
Class CDOCommonUtil

java.lang.Object
  extended by org.eclipse.emf.cdo.common.util.CDOCommonUtil

public final class CDOCommonUtil
extends Object

Various static methods that may help with I/O and time stamps.

Since:
3.0

Field Summary
static SimpleDateFormat DATE_FORMAT
           
 
Method Summary
static int compareTimeStamps(long t1, long t2)
           
static CDODataInput createCDODataInput(ExtendedDataInputStream inputStream, CDOPackageRegistry packageRegistry, CDOBranchManager branchManager, CDOCommitInfoManager commitManager, CDORevisionFactory revisionFactory, CDOListFactory listFactory, CDOLobStore lobStore)
           
static CDODataOutput createCDODataOutput(ExtendedDataOutput extendedDataOutputStream, CDOPackageRegistry packageRegistry, CDOIDProvider idProvider)
           
static String formatTimeStamp()
           
static String formatTimeStamp(long timeStamp)
           
static boolean isValidTimeStamp(long timeStamp, long startTime, long endTime)
           
static long parseTimeStamp(String timeStamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_FORMAT

public static final SimpleDateFormat DATE_FORMAT
Since:
4.0
Method Detail

createCDODataInput

public static CDODataInput createCDODataInput(ExtendedDataInputStream inputStream,
                                              CDOPackageRegistry packageRegistry,
                                              CDOBranchManager branchManager,
                                              CDOCommitInfoManager commitManager,
                                              CDORevisionFactory revisionFactory,
                                              CDOListFactory listFactory,
                                              CDOLobStore lobStore)
                                       throws IOException
Throws:
IOException
Since:
4.0

createCDODataOutput

public static CDODataOutput createCDODataOutput(ExtendedDataOutput extendedDataOutputStream,
                                                CDOPackageRegistry packageRegistry,
                                                CDOIDProvider idProvider)
Since:
4.0

isValidTimeStamp

public static boolean isValidTimeStamp(long timeStamp,
                                       long startTime,
                                       long endTime)

compareTimeStamps

public static int compareTimeStamps(long t1,
                                    long t2)

formatTimeStamp

public static String formatTimeStamp()

formatTimeStamp

public static String formatTimeStamp(long timeStamp)

parseTimeStamp

public static long parseTimeStamp(String timeStamp)
                           throws ParseException
Throws:
ParseException
Since:
4.0


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.