Class FileFormatInfo

java.lang.Object
qupath.lib.images.servers.FileFormatInfo

public class FileFormatInfo extends Object
Helper class that, given a path, determines some basic file format information without enlisting the help of an external library or performing extensive parsing of the data.

In particular, it attempts to extract some usable information from TIFF images using ImageIO to help a reader determine whether or not it should attempt to read the image.

Author:
Pete Bankhead
  • Constructor Details

    • FileFormatInfo

      public FileFormatInfo()
  • Method Details

    • checkType

      public static FileFormatInfo.ImageCheckType checkType(URI uri)
      Check the type of an image for a specified URI.

      This will return a cached value if possible, to avoid applying (potentially costly) checks too often.

      Parameters:
      uri -
      Returns: