Package mil.nga.tiff

Class TiffReader


  • public class TiffReader
    extends Object
    TIFF reader
    Author:
    osbornb
    • Constructor Detail

      • TiffReader

        public TiffReader()
    • Method Detail

      • readTiff

        public static TIFFImage readTiff​(File file)
                                  throws IOException
        Read a TIFF from a file
        Parameters:
        file - TIFF file
        Returns:
        TIFF image
        Throws:
        IOException - upon failure to read
      • readTiff

        public static TIFFImage readTiff​(File file,
                                         boolean cache)
                                  throws IOException
        Read a TIFF from a file
        Parameters:
        file - TIFF file
        cache - true to cache tiles and strips
        Returns:
        TIFF image
        Throws:
        IOException - upon failure to read
      • readTiff

        public static TIFFImage readTiff​(InputStream stream)
                                  throws IOException
        Read a TIFF from an input stream
        Parameters:
        stream - TIFF input stream
        Returns:
        TIFF image
        Throws:
        IOException - upon failure to read
      • readTiff

        public static TIFFImage readTiff​(InputStream stream,
                                         boolean cache)
                                  throws IOException
        Read a TIFF from an input stream
        Parameters:
        stream - TIFF input stream
        cache - true to cache tiles and strips
        Returns:
        TIFF image
        Throws:
        IOException - upon failure to read
      • readTiff

        public static TIFFImage readTiff​(byte[] bytes)
        Read a TIFF from the bytes
        Parameters:
        bytes - TIFF bytes
        Returns:
        TIFF image
      • readTiff

        public static TIFFImage readTiff​(byte[] bytes,
                                         boolean cache)
        Read a TIFF from the bytes
        Parameters:
        bytes - TIFF bytes
        cache - true to cache tiles and strips
        Returns:
        TIFF image
      • readTiff

        public static TIFFImage readTiff​(ByteReader reader)
        Read a TIFF from the byte reader
        Parameters:
        reader - byte reader
        Returns:
        TIFF image
      • readTiff

        public static TIFFImage readTiff​(ByteReader reader,
                                         boolean cache)
        Read a TIFF from the byte reader
        Parameters:
        reader - byte reader
        cache - true to cache tiles and strips
        Returns:
        TIFF image