reader.readDirectory( subdirOffset, 0, tempDir );
//
// Now pluck out the tags' values we're interested in and
// insert them (and only them) into the Nikon directory.
//
final LongMetaValue offsetValue =
(LongMetaValue)tempDir.getValue(
EXIF_JPEG_INTERCHANGE_FORMAT
);
final LongMetaValue lengthValue =
(LongMetaValue)tempDir.getValue(
EXIF_JPEG_INTERCHANGE_FORMAT_LENGTH
);
if ( offsetValue == null || lengthValue == null )
return true;
final int offset = offsetValue.getIntValue();
final int length = lengthValue.getIntValue();
if ( offset <= 0 || length <= 0 )
return true;
final ImageMetadataDirectory nikonDir =
imageInfo.getCurrentMetadata().getDirectoryFor(
NikonDirectory.class, true