Klasse PosixStorageFile

java.lang.Object
de.dlr.proseo.storagemgr.posix.PosixStorageFile
Alle implementierten Schnittstellen:
StorageFile

public class PosixStorageFile extends Object implements 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
  • Konstruktordetails

    • PosixStorageFile

      public PosixStorageFile(String basePath, String relativePath)
      No Bucket Constructor
      Parameter:
      basePath - base path
      relativePath - relative path
    • PosixStorageFile

      public PosixStorageFile(String basePath, String bucket, String relativePath)
      Constructor with bucket
      Parameter:
      basePath - base path
      bucket - bucket
      relativePath - relative path
    • PosixStorageFile

      public PosixStorageFile(StorageFile storageFile)
      Copy Constructor
      Parameter:
      storageFile - Storage file
  • Methodendetails

    • getFullPath

      public String getFullPath()
      Gets the full path
      Angegeben von:
      getFullPath in Schnittstelle StorageFile
      Gibt zurück:
      the full path
    • getBasePath

      public String getBasePath()
      Gets the base path
      Angegeben von:
      getBasePath in Schnittstelle StorageFile
      Gibt zurück:
      the base path
    • setBasePath

      public void setBasePath(String basePath)
      Sets the base path
      Angegeben von:
      setBasePath in Schnittstelle StorageFile
      Parameter:
      basePath - base path
    • getBucket

      public String getBucket()
      Gets the bucket
      Angegeben von:
      getBucket in Schnittstelle StorageFile
      Gibt zurück:
      the bucket
    • setBucket

      public void setBucket(String bucket)
      Sets the bucket
      Angegeben von:
      setBucket in Schnittstelle StorageFile
      Parameter:
      bucket - the bucket
    • getRelativePath

      public String getRelativePath()
      Gets relative path
      Angegeben von:
      getRelativePath in Schnittstelle StorageFile
      Gibt zurück:
      relative path
    • setRelativePath

      public void setRelativePath(String relativePath)
      Sets relative path
      Angegeben von:
      setRelativePath in Schnittstelle StorageFile
      Parameter:
      relativePath - relative path
    • getFileName

      public String getFileName()
      Gets file name
      Angegeben von:
      getFileName in Schnittstelle StorageFile
      Gibt zurück:
      file name
    • getStorageType

      public StorageType getStorageType()
      Gets storage type
      Angegeben von:
      getStorageType in Schnittstelle StorageFile
      Gibt zurück:
      storage type
    • getExtension

      public String getExtension()
      Gets extension from file name
      Angegeben von:
      getExtension in Schnittstelle StorageFile
      Gibt zurück:
      extension
    • isDirectory

      public boolean isDirectory()
      Checks if path is a directory path
      Angegeben von:
      isDirectory in Schnittstelle StorageFile
      Gibt zurück:
      true if directory