Package de.dlr.proseo.storagemgr.s3
Class S3StorageFile
java.lang.Object
de.dlr.proseo.storagemgr.s3.S3StorageFile
- All Implemented Interfaces:
StorageFile
Represents a file within a S3-based storage system. It implements the
StorageFile interface and provides functionality related to the file's
properties and operations.
Full path: "s3:/" + bucket + relativePath (with fileName)
- Author:
- Denys Chaykovskiy
-
Field Summary
Fields inherited from interface de.dlr.proseo.storagemgr.model.StorageFile
NO_BUCKET -
Constructor Summary
ConstructorsConstructorDescriptionS3StorageFile(StorageFile storageFile) Copy ConstructorS3StorageFile(String bucket, String relativePath) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGets the base pathGets the bucketGets extension from file nameGets file nameGets the full pathGets relative pathGets storage typebooleanChecks if path is a directory pathvoidsetBasePath(String basePath) Sets the base pathvoidSets the bucketvoidsetRelativePath(String relativePath) Sets relative path
-
Constructor Details
-
S3StorageFile
Constructor- Parameters:
bucket- bucketrelativePath- relative path
-
S3StorageFile
Copy Constructor- Parameters:
storageFile- Storage file
-
-
Method Details
-
getFullPath
Gets the full path- Specified by:
getFullPathin interfaceStorageFile- Returns:
- the full path
-
getBasePath
Gets the base path- Specified by:
getBasePathin interfaceStorageFile- Returns:
- the base path
-
setBasePath
Sets the base path- Specified by:
setBasePathin interfaceStorageFile- Parameters:
basePath- base path
-
getBucket
Gets the bucket- Specified by:
getBucketin interfaceStorageFile- Returns:
- the bucket
-
setBucket
Sets the bucket- Specified by:
setBucketin interfaceStorageFile- Parameters:
bucket- the bucket
-
getRelativePath
Gets relative path- Specified by:
getRelativePathin interfaceStorageFile- Returns:
- relative path
-
setRelativePath
Sets relative path- Specified by:
setRelativePathin interfaceStorageFile- Parameters:
relativePath- relative path
-
getFileName
Gets file name- Specified by:
getFileNamein interfaceStorageFile- Returns:
- file name
-
getStorageType
Gets storage type- Specified by:
getStorageTypein interfaceStorageFile- Returns:
- storage type
-
getExtension
Gets extension from file name- Specified by:
getExtensionin interfaceStorageFile- Returns:
- extension
-
isDirectory
public boolean isDirectory()Checks if path is a directory path- Specified by:
isDirectoryin interfaceStorageFile- Returns:
- true if directory
-