Class LocalFileUtils
- java.lang.Object
-
- fr.gouv.vitam.storage.offers.tape.utils.LocalFileUtils
-
public final class LocalFileUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
INPUT_TAR_TMP_FOLDER
static java.lang.String
TAR_EXTENSION
static java.lang.String
TMP_EXTENSION
static java.lang.String
ZIP_EXTENSION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
archiveFileNamePathToArchiveId(java.lang.String tarFileName)
static java.lang.String
archiveFileNameRelativeToInputArchiveStorageFolder(java.lang.String fileBucket, java.lang.String archiveId)
static java.lang.String
createStorageId(java.lang.String objectName)
static java.lang.String
createTarEntryName(java.lang.String containerName, java.lang.String storageId, int entryIndex)
static java.lang.String
createTarId(java.time.LocalDateTime now)
static java.nio.file.Path
fileBuckedInputFilePath(java.lang.String inputTarStorageFolder, java.lang.String fileBucketId)
static java.lang.String
getContainerNameFromTarEntryName(java.lang.String tarEntryName)
static java.lang.String
getCreationDateFromArchiveId(java.lang.String archiveId)
static int
getEntryIndexFromTarEntryName(java.lang.String tarEntryName)
static java.lang.String
getStorageIdFromTarEntryName(java.lang.String tarEntryName)
static java.lang.String
storageIdToObjectName(java.lang.String storageId)
-
-
-
Field Detail
-
TAR_EXTENSION
public static final java.lang.String TAR_EXTENSION
- See Also:
- Constant Field Values
-
ZIP_EXTENSION
public static final java.lang.String ZIP_EXTENSION
- See Also:
- Constant Field Values
-
TMP_EXTENSION
public static final java.lang.String TMP_EXTENSION
- See Also:
- Constant Field Values
-
INPUT_TAR_TMP_FOLDER
public static final java.lang.String INPUT_TAR_TMP_FOLDER
- See Also:
- Constant Field Values
-
-
Method Detail
-
createStorageId
public static java.lang.String createStorageId(java.lang.String objectName)
-
storageIdToObjectName
public static java.lang.String storageIdToObjectName(java.lang.String storageId)
-
createTarEntryName
public static java.lang.String createTarEntryName(java.lang.String containerName, java.lang.String storageId, int entryIndex)
-
getContainerNameFromTarEntryName
public static java.lang.String getContainerNameFromTarEntryName(java.lang.String tarEntryName)
-
getStorageIdFromTarEntryName
public static java.lang.String getStorageIdFromTarEntryName(java.lang.String tarEntryName)
-
getEntryIndexFromTarEntryName
public static int getEntryIndexFromTarEntryName(java.lang.String tarEntryName)
-
createTarId
public static java.lang.String createTarId(java.time.LocalDateTime now)
-
archiveFileNameRelativeToInputArchiveStorageFolder
public static java.lang.String archiveFileNameRelativeToInputArchiveStorageFolder(java.lang.String fileBucket, java.lang.String archiveId)
-
getCreationDateFromArchiveId
public static java.lang.String getCreationDateFromArchiveId(java.lang.String archiveId)
-
archiveFileNamePathToArchiveId
public static java.lang.String archiveFileNamePathToArchiveId(java.lang.String tarFileName)
-
fileBuckedInputFilePath
public static java.nio.file.Path fileBuckedInputFilePath(java.lang.String inputTarStorageFolder, java.lang.String fileBucketId)
-
-