add TIFFImageMetadata.getTIFFField

This commit is contained in:
Oliver Schmidtmer 2015-12-22 15:44:30 +01:00
parent 9c38ff9bdb
commit 9c011adfc2

View File

@ -1299,6 +1299,17 @@ public final class TIFFImageMetadata extends AbstractMetadata {
return ifd;
}
/**
* Returns an Entry which contains the data of the requested TIFF field.
*
* @param tagNumber Tag number of the TIFF field.
*
* @return the TIFF field, or null.
*/
public Entry getTIFFField(final int tagNumber) {
return ifd.getEntryById(tagNumber);
}
// TODO: Replace with IFD class when moved to new package and made public!
private final static class TIFFIFD extends AbstractDirectory {
public TIFFIFD(final Collection<Entry> entries) {