Class ViewerProvider


  • public class ViewerProvider
    extends Object
    Viewer factory which provides preview and view services.
    Author:
    Yohann Chastagnier
    • Method Detail

      • isPreviewable

        public static boolean isPreviewable​(File file)
        Indicates if file is previewable.
        Parameters:
        file -
        Returns:
        true if a preview can be produced - false otherwise.
      • isPreviewable

        public static boolean isPreviewable​(String path)
        Indicates if file is previewable.
        Parameters:
        path -
        Returns:
        true if a preview can be produced - false otherwise.
      • isViewable

        public static boolean isViewable​(File file)
        Indicates if file is displayable with FlexPaper.
        Parameters:
        file -
        Returns:
        true if a preview can be produced - false otherwise.
      • isViewable

        public static boolean isViewable​(String path)
        Indicates if file is displayable with FlexPaper.
        Parameters:
        path -
        Returns:
        true if a preview can be produced - false otherwise.