com.groupdocs.viewer.storage

Interface IFileStorage

  • All Known Implementing Classes:
    LocalFileStorage


    public interface IFileStorage

    File storage interface

    • Method Detail

      • deleteDirectory

        void deleteDirectory(String path)
        Removes directory
        Parameters:
        path - Directory path.
      • fileExists

        boolean fileExists(String path)
        Checks if file exists
        Parameters:
        path - File path.
        Returns:
        true when file exists, otherwise false
      • getFile

        InputStream getFile(String path)
        Retrieves file content
        Parameters:
        path - File path.
        Returns:
        Stream
      • getFileInfo

        IFileInfo getFileInfo(String path)
        Retrieves file information
        Parameters:
        path - File path. File information.
      • getFilesInfo

        List<IFileInfo> getFilesInfo(String path)
        Retrieves list of files and folders
        Parameters:
        path - Directory path. Files and folders.
      • saveFile

        void saveFile(String path,
                    InputStream content)
        Saves file
        Parameters:
        path - File path.
        content - File content.