Package mil.nga.tiff
Class TIFFImage
- java.lang.Object
-
- mil.nga.tiff.TIFFImage
-
public class TIFFImage extends Object
TIFF Image containing the File Directories- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description TIFFImage()
ConstructorTIFFImage(List<FileDirectory> fileDirectories)
Constructor, multiple file directoriesTIFFImage(FileDirectory fileDirectory)
Constructor, single file directory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(FileDirectory fileDirectory)
Add a file directoryList<FileDirectory>
getFileDirectories()
Get the file directoriesFileDirectory
getFileDirectory()
Get the default, first, or only file directoryFileDirectory
getFileDirectory(int index)
Get the file directory at the indexlong
sizeHeaderAndDirectories()
Size in bytes of the TIFF header and file directories with their entrieslong
sizeHeaderAndDirectoriesWithValues()
Size in bytes of the TIFF header and file directories with their entries and entry values
-
-
-
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
-
-