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 typebooleanChecks if path is a directory pathvoidsetBasePath(String basePath) Sets the base pathvoidSets the bucketvoidsetRelativePath(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:
getFullPathin SchnittstelleStorageFile- Gibt zurück:
- the full path
-
getBasePath
Gets the base path- Angegeben von:
getBasePathin SchnittstelleStorageFile- Gibt zurück:
- the base path
-
setBasePath
Sets the base path- Angegeben von:
setBasePathin SchnittstelleStorageFile- Parameter:
basePath- base path
-
getBucket
Gets the bucket- Angegeben von:
getBucketin SchnittstelleStorageFile- Gibt zurück:
- the bucket
-
setBucket
Sets the bucket- Angegeben von:
setBucketin SchnittstelleStorageFile- Parameter:
bucket- the bucket
-
getRelativePath
Gets relative path- Angegeben von:
getRelativePathin SchnittstelleStorageFile- Gibt zurück:
- relative path
-
setRelativePath
Sets relative path- Angegeben von:
setRelativePathin SchnittstelleStorageFile- Parameter:
relativePath- relative path
-
getFileName
Gets file name- Angegeben von:
getFileNamein SchnittstelleStorageFile- Gibt zurück:
- file name
-
getStorageType
Gets storage type- Angegeben von:
getStorageTypein SchnittstelleStorageFile- Gibt zurück:
- storage type
-
getExtension
Gets extension from file name- Angegeben von:
getExtensionin SchnittstelleStorageFile- Gibt zurück:
- extension
-
isDirectory
public boolean isDirectory()Checks if path is a directory path- Angegeben von:
isDirectoryin SchnittstelleStorageFile- Gibt zurück:
- true if directory
-