Package de.dlr.proseo.storagemgr.s3
Klasse S3StorageFile
java.lang.Object
de.dlr.proseo.storagemgr.s3.S3StorageFile
- Alle implementierten Schnittstellen:
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)
- Autor:
- Denys Chaykovskiy
-
Feldübersicht
Von Schnittstelle geerbte Felder de.dlr.proseo.storagemgr.model.StorageFile
NO_BUCKET
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungS3StorageFile
(StorageFile storageFile) Copy ConstructorS3StorageFile
(String bucket, String relativePath) Constructor -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGets the base pathGets the bucketGets extension from file nameGets file nameGets the full pathGets relative pathGets storage typeboolean
Checks if path is a directory pathvoid
setBasePath
(String basePath) Sets the base pathvoid
Sets the bucketvoid
setRelativePath
(String relativePath) Sets relative path
-
Konstruktordetails
-
S3StorageFile
Constructor- Parameter:
bucket
- bucketrelativePath
- relative path
-
S3StorageFile
Copy Constructor- Parameter:
storageFile
- Storage file
-
-
Methodendetails
-
getFullPath
Gets the full path- Angegeben von:
getFullPath
in SchnittstelleStorageFile
- Gibt zurück:
- the full path
-
getBasePath
Gets the base path- Angegeben von:
getBasePath
in SchnittstelleStorageFile
- Gibt zurück:
- the base path
-
setBasePath
Sets the base path- Angegeben von:
setBasePath
in SchnittstelleStorageFile
- Parameter:
basePath
- base path
-
getBucket
Gets the bucket- Angegeben von:
getBucket
in SchnittstelleStorageFile
- Gibt zurück:
- the bucket
-
setBucket
Sets the bucket- Angegeben von:
setBucket
in SchnittstelleStorageFile
- Parameter:
bucket
- the bucket
-
getRelativePath
Gets relative path- Angegeben von:
getRelativePath
in SchnittstelleStorageFile
- Gibt zurück:
- relative path
-
setRelativePath
Sets relative path- Angegeben von:
setRelativePath
in SchnittstelleStorageFile
- Parameter:
relativePath
- relative path
-
getFileName
Gets file name- Angegeben von:
getFileName
in SchnittstelleStorageFile
- Gibt zurück:
- file name
-
getStorageType
Gets storage type- Angegeben von:
getStorageType
in SchnittstelleStorageFile
- Gibt zurück:
- storage type
-
getExtension
Gets extension from file name- Angegeben von:
getExtension
in SchnittstelleStorageFile
- Gibt zurück:
- extension
-
isDirectory
public boolean isDirectory()Checks if path is a directory path- Angegeben von:
isDirectory
in SchnittstelleStorageFile
- Gibt zurück:
- true if directory
-