public class TiffDocument extends Object implements Serializable
| Constructor and Description |
|---|
TiffDocument()
Instantiates a new tiff file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIfd0(IFD ifd)
Adds an IFD to the model.
|
boolean |
addTag(String tagName,
String tagValue)
Adds the tag.
|
void |
createMetadataDictionary()
Creates the metadata dictionary.
|
ByteOrder |
getEndianess()
Gets the endianess.
|
boolean |
getFatalError() |
String |
getFatalErrorMEssage() |
IFD |
getFirstIFD()
Returns the first image of the file.
|
int |
getFirstIFDOffset()
Gets the first ifd offset.
|
IccProfile |
getIccProfile() |
int |
getIfdAndSubIfdCount()
Gets the count of IFDs and SubIFDs.
|
int |
getIfdCount()
Gets the ifd count.
|
int |
getIfdImagesCount()
Gets the images count (main images and thumbnails).
|
List<TiffObject> |
getIfds()
Returns a list of ifds including exifds.
|
List<TiffObject> |
getIfdsAndSubIfds()
Returns a list of subifds.
|
List<TiffObject> |
getImageIfds()
Returns a list of ifds representing Images.
|
int |
getMagicNumber()
Gets the magic number of the Tiff file.
|
int |
getMainImagesCount()
Gets the main images count.
|
Metadata |
getMetadata()
Gets the metadata.
|
List<TiffObject> |
getMetadataList(String name)
Gets the metadata ok a given class name.
|
String |
getMetadataSingleString(String name)
Gets an string with the value of the first tag matching the given tag name.
|
long |
getSize()
Gets the size.
|
int |
getSubIfdCount()
Gets the Subifd count.
|
List<TiffObject> |
getSubIfds()
Returns a list of subifds.
|
int |
getThumbnailsImagesCount()
Gets the thumbnails images count.
|
void |
printMetadata()
Prints the metadata.
|
boolean |
removeTag(String tagName)
Removes the tag.
|
void |
setByteOrder(ByteOrder byteOrder)
Sets the magic number of the Tiff file.
|
void |
setFatalError(boolean error,
String message) |
void |
setFirstIFDOffset(int offset)
Sets the first ifd offset.
|
void |
setMagicNumber(int magic)
Sets the magic number of the Tiff file.
|
void |
setSize(long size)
Sets the size.
|
public void addIfd0(IFD ifd)
ifd - the ifdpublic void setFirstIFDOffset(int offset)
offset - the new first ifd offsetpublic int getFirstIFDOffset()
public void setSize(long size)
size - the new sizepublic boolean getFatalError()
public String getFatalErrorMEssage()
public void setFatalError(boolean error,
String message)
public IccProfile getIccProfile()
public long getSize()
public int getIfdCount()
public int getIfdImagesCount()
public int getMainImagesCount()
public int getThumbnailsImagesCount()
public int getSubIfdCount()
public int getIfdAndSubIfdCount()
public List<TiffObject> getIfds()
public List<TiffObject> getImageIfds()
public List<TiffObject> getSubIfds()
public ByteOrder getEndianess()
public List<TiffObject> getIfdsAndSubIfds()
public IFD getFirstIFD()
public int getMagicNumber()
public void setMagicNumber(int magic)
magic - the new magic numberpublic void setByteOrder(ByteOrder byteOrder)
byteOrder - the byte orderpublic String getMetadataSingleString(String name)
name - the tag namepublic List<TiffObject> getMetadataList(String name)
name - the class namepublic void createMetadataDictionary()
public void printMetadata()
public Metadata getMetadata()
public boolean removeTag(String tagName)
tagName - the tag nameCopyright © 2015–2020. All rights reserved.