Interface ViewService

  • All Known Implementing Classes:
    DefaultViewService

    public interface ViewService
    The view service. Its goal is to generate a view of a document without having to download it or to open it with a dedicated program.
    Author:
    Yohann Chastagnier
    • Method Detail

      • isViewable

        boolean isViewable​(File file)
        Verifying if it is possible to obtain a view of the given file.
        Parameters:
        file - the file to verify.
        Returns:
        true if view is possible, false otherwise.
      • getDocumentView

        DocumentView getDocumentView​(ViewerContext viewerContext)
        Getting pages view instances of the given file.
        Parameters:
        viewerContext - the context of the view.
        Returns:
        a DocumentView instance.
      • removeDocumentView

        void removeDocumentView​(ViewerContext viewerContext)
        Removes data about a document view from given context.
        Parameters:
        viewerContext - the context of the document view.