com.groupdocs.viewer.handler.input

Interface IInputDataHandler



  • public interface IInputDataHandler

    Exposes members for loading original document from storage

    Version:
    17.5.1
    Author:
    GroupDocs.Viewer Team
    • Method Detail

      • addFile

        void addFile(String guid,
                   InputStream content)
                     throws Exception
        Adds file to storage.
        Parameters:
        guid - This is user defined key that identifies file in the storage.
        content - Stream to save data to storage.
        Throws:
        Exception - if any.
      • getFile

        InputStream getFile(String guid)
                            throws Exception
        Retrieves file from storage.
        Parameters:
        guid - This is user defined key that identifies file in the storage.
        Returns:
        An open stream read from to get the data from storage.
        Throws:
        Exception - if any.
      • getLastModificationDate

        Date getLastModificationDate(String guid)
                                     throws Exception
        Gets the file last modification date.
        Parameters:
        guid - This is user defined key that identifies file in the storage.
        Returns:
        The date and time the file was last modified.
        Throws:
        Exception - if any.