Package org.eclipse.emf.cdo.common.util
Class CDOCommonUtil
java.lang.Object
org.eclipse.emf.cdo.common.util.CDOCommonUtil
Various static methods that may help with I/O and time stamps.
- Since:
- 3.0
- Author:
- Eike Stepper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleDateFormatstatic final Patternstatic final Comparator<CDONameProvider>static final Stringstatic final Comparator<CDOTimeProvider>static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompareTimeStamps(long t1, long t2) static CDODataInputcreateCDODataInput(org.eclipse.net4j.util.io.ExtendedDataInputStream inputStream, CDOPackageRegistry packageRegistry, CDOBranchManager branchManager, CDOCommitInfoManager commitManager, CDORevisionFactory revisionFactory, CDOListFactory listFactory, CDOLobStore lobStore) static CDODataOutputcreateCDODataOutput(org.eclipse.net4j.util.io.ExtendedDataOutput extendedDataOutputStream, CDOPackageRegistry packageRegistry, CDOIDProvider idProvider) Deprecated.static CDODataOutputcreateCDODataOutput(org.eclipse.net4j.util.io.ExtendedDataOutput extendedDataOutputStream, CDOPackageRegistry packageRegistry, CDOIDProvider idProvider, CDORevisionUnchunker unchunker) static Stringstatic StringformatTimeStamp(long timeStamp) static booleanisValidTimeStamp(long timeStamp, long startTime, long endTime) static booleanisWellFormedURI(String uri) A well formed URI string must have a non-zero length, and must encode any special characters such as the space character.static longparseTimeStamp(String timeStamp) static booleanwaitWhileInitial(CDOCommonRepository repository, org.eclipse.net4j.util.event.INotifier notifier, IProgressMonitor monitor)
-
Field Details
-
UNSPECIFIED_DATE_STRING
- Since:
- 4.5
- See Also:
-
DATE_FORMAT
- Since:
- 4.0
-
DATE_PATTERN
- Since:
- 4.4
-
SYSTEM_USER_ID
- Since:
- 4.2
- See Also:
-
NAME_COMPARATOR
- Since:
- 4.4
-
TIME_COMPARATOR
- Since:
- 4.4
-
-
Method Details
-
createCDODataInput
public static CDODataInput createCDODataInput(org.eclipse.net4j.util.io.ExtendedDataInputStream inputStream, CDOPackageRegistry packageRegistry, CDOBranchManager branchManager, CDOCommitInfoManager commitManager, CDORevisionFactory revisionFactory, CDOListFactory listFactory, CDOLobStore lobStore) throws IOException - Throws:
IOException- Since:
- 4.0
-
createCDODataOutput
@Deprecated public static CDODataOutput createCDODataOutput(org.eclipse.net4j.util.io.ExtendedDataOutput extendedDataOutputStream, CDOPackageRegistry packageRegistry, CDOIDProvider idProvider) Deprecated.- Since:
- 4.0
-
createCDODataOutput
public static CDODataOutput createCDODataOutput(org.eclipse.net4j.util.io.ExtendedDataOutput extendedDataOutputStream, CDOPackageRegistry packageRegistry, CDOIDProvider idProvider, CDORevisionUnchunker unchunker) - Since:
- 4.3
-
isWellFormedURI
A well formed URI string must have a non-zero length, and must encode any special characters such as the space character. As such, creating aURI, ignoring the properly encoded characters, and converting that to astring, must yield this URI string itself.- Parameters:
uri- the URI string in question.- Returns:
- whether the URI is well formed.
- Since:
- 4.21
-
isValidTimeStamp
public static boolean isValidTimeStamp(long timeStamp, long startTime, long endTime) -
compareTimeStamps
public static int compareTimeStamps(long t1, long t2) -
formatTimeStamp
-
formatTimeStamp
-
parseTimeStamp
- Throws:
ParseException- Since:
- 4.0
-
waitWhileInitial
public static boolean waitWhileInitial(CDOCommonRepository repository, org.eclipse.net4j.util.event.INotifier notifier, IProgressMonitor monitor) - Since:
- 4.2
-
createCDODataOutput(ExtendedDataOutput, CDOPackageRegistry, CDOIDProvider, CDORevisionUnchunker).