Package de.dlr.proseo.storagemgr.posix
Klasse PosixStorageFile
java.lang.Object
de.dlr.proseo.storagemgr.posix.PosixStorageFile
- Alle implementierten Schnittstellen:
StorageFile
Represents a file within a POSIX-based storage system. It implements the
StorageFile interface and provides functionality related to the file's
properties and operations.
Full path: "/" + basePath + bucket (optional) + relativePath (with fileName)
- Autor:
- Denys Chaykovskiy
-
Feldübersicht
Von Schnittstelle geerbte Felder de.dlr.proseo.storagemgr.model.StorageFile
NO_BUCKET
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungPosixStorageFile
(StorageFile storageFile) Copy ConstructorPosixStorageFile
(String basePath, String relativePath) No Bucket ConstructorPosixStorageFile
(String basePath, String bucket, String relativePath) Constructor with bucket -
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
-
PosixStorageFile
No Bucket Constructor- Parameter:
basePath
- base pathrelativePath
- relative path
-
PosixStorageFile
Constructor with bucket- Parameter:
basePath
- base pathbucket
- bucketrelativePath
- relative path
-
PosixStorageFile
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
-