Class VirtualViewerFormatHash


  • public class VirtualViewerFormatHash
    extends java.lang.Object
    This singleton is used to get known format information, including the list of file extensions known and supported by VirtualViewer.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Snow.Format getFormat​(int filetype)
      Retrieve a detailed information object about a format by providing the code VirtualViewer and RasterMaster uses to identify that format.
      static VirtualViewerFormatHash getInstance()
      Retrieve the VirtualViewerFormatHash instance.
      java.util.List<java.lang.String> getKnownExtensions()
      Return a list of file extensions known and supported by VirtualViewer, including video file extensions.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public static VirtualViewerFormatHash getInstance()
        Retrieve the VirtualViewerFormatHash instance.
        Returns:
        Instance of VirtualViewerFormatHash
      • getKnownExtensions

        public java.util.List<java.lang.String> getKnownExtensions()
        Return a list of file extensions known and supported by VirtualViewer, including video file extensions. (Note that some videos with a known extension may not be playable in your web browser).
        Returns:
        a list of file extensions (without a ".", e.g. "pdf", "jpg", "png", etc)
      • getFormat

        public Snow.Format getFormat​(int filetype)
        Retrieve a detailed information object about a format by providing the code VirtualViewer and RasterMaster uses to identify that format.
        Parameters:
        filetype - Format code used VirtualViewer and RasterMaster
        Returns:
        detailed Format information object