com.groupdocs.viewer.storage

Class LocalFileStorage

    • Constructor Detail

      • LocalFileStorage

        public LocalFileStorage()
    • Method Detail

      • deleteDirectory

        public void deleteDirectory(String path)

        Removes directory

        Specified by:
        deleteDirectory in interface IFileStorage
        Parameters:
        path - Directory path.
      • fileExists

        public boolean fileExists(String path)

        Checks if file exists

        Specified by:
        fileExists in interface IFileStorage
        Parameters:
        path - File path.
        Returns:
        true when file exists, otherwise false
      • getFileInfo

        public IFileInfo getFileInfo(String path)

        Retrieves file information

        Specified by:
        getFileInfo in interface IFileStorage
        Parameters:
        path - File path.
        Returns:
        File information.
      • getFilesInfo

        public List<IFileInfo> getFilesInfo(String path)

        Retrieves list of files and folders

        Specified by:
        getFilesInfo in interface IFileStorage
        Parameters:
        path - Directory path.
        Returns:
        Files and folders.
      • saveFile

        public void saveFile(String path,
                    InputStream inputStream)

        Saves file

        Specified by:
        saveFile in interface IFileStorage
        Parameters:
        path - File path.
        inputStream - File content.