Package mil.nga.tiff

Class TIFFImage


  • public class TIFFImage
    extends Object
    TIFF Image containing the File Directories
    Author:
    osbornb
    • Constructor Detail

      • TIFFImage

        public TIFFImage()
        Constructor
      • TIFFImage

        public TIFFImage​(FileDirectory fileDirectory)
        Constructor, single file directory
        Parameters:
        fileDirectory - file directory
      • TIFFImage

        public TIFFImage​(List<FileDirectory> fileDirectories)
        Constructor, multiple file directories
        Parameters:
        fileDirectories - file directories
    • Method Detail

      • add

        public void add​(FileDirectory fileDirectory)
        Add a file directory
        Parameters:
        fileDirectory - file directory
      • getFileDirectories

        public List<FileDirectory> getFileDirectories()
        Get the file directories
        Returns:
        file directories
      • getFileDirectory

        public FileDirectory getFileDirectory()
        Get the default, first, or only file directory
        Returns:
        file directory
      • getFileDirectory

        public FileDirectory getFileDirectory​(int index)
        Get the file directory at the index
        Parameters:
        index - index
        Returns:
        file directory
      • sizeHeaderAndDirectories

        public long sizeHeaderAndDirectories()
        Size in bytes of the TIFF header and file directories with their entries
        Returns:
        size in bytes
      • sizeHeaderAndDirectoriesWithValues

        public long sizeHeaderAndDirectoriesWithValues()
        Size in bytes of the TIFF header and file directories with their entries and entry values
        Returns:
        size in bytes