Interface StorageFile

All Known Implementing Classes:
PosixStorageFile, S3StorageFile

public interface StorageFile
Storage File Structure. The file can exist or it can be just an abstract structure.
Author:
Denys Chaykovskiy
  • Field Details

  • Method Details

    • getFullPath

      String getFullPath()
      Gets the full path
      Returns:
      the full path
    • getBasePath

      String getBasePath()
      Gets the base path
      Returns:
      the base path
    • setBasePath

      void setBasePath(String basePath)
      Sets the base path
      Parameters:
      basePath - base path
    • getBucket

      String getBucket()
      Gets the bucket
      Returns:
      the bucket
    • setBucket

      void setBucket(String bucket)
      Sets the bucket
      Parameters:
      bucket - the bucket
    • getRelativePath

      String getRelativePath()
      Gets relative path
      Returns:
      relative path
    • setRelativePath

      void setRelativePath(String relativePath)
      Sets relative path
      Parameters:
      relativePath - relative path
    • getFileName

      String getFileName()
      Gets file name
      Returns:
      file name
    • getStorageType

      StorageType getStorageType()
      Gets storage type
      Returns:
      storage type
    • getExtension

      String getExtension()
      Gets extension from file name
      Returns:
      extension
    • isDirectory

      boolean isDirectory()
      Checks if path is a directory path
      Returns:
      true if directory