mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 12:35:29 -04:00
add TIFFImageMetadata.getTIFFField
This commit is contained in:
parent
9c38ff9bdb
commit
9c011adfc2
@ -1299,6 +1299,17 @@ public final class TIFFImageMetadata extends AbstractMetadata {
|
|||||||
return ifd;
|
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!
|
// TODO: Replace with IFD class when moved to new package and made public!
|
||||||
private final static class TIFFIFD extends AbstractDirectory {
|
private final static class TIFFIFD extends AbstractDirectory {
|
||||||
public TIFFIFD(final Collection<Entry> entries) {
|
public TIFFIFD(final Collection<Entry> entries) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user