Methods Summary |
---|
protected boolean | checkCollision(short tagId)
return mExifTags.get(tagId) != null;
|
public boolean | equals(java.lang.Object obj)Returns true if all tags in this two IFDs are equal. Note that tags of
IFDs offset or thumbnail offset will be ignored.
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (obj instanceof IfdData) {
IfdData data = (IfdData) obj;
if (data.getId() == mIfdId && data.getTagCount() == getTagCount()) {
ExifTag[] tags = data.getAllTags();
for (ExifTag tag : tags) {
if (ExifInterface.isOffsetTag(tag.getTagId())) {
continue;
}
ExifTag tag2 = mExifTags.get(tag.getTagId());
if (!tag.equals(tag2)) {
return false;
}
}
return true;
}
}
return false;
|
protected ExifTag[] | getAllTags()Get a array the contains all {@link ExifTag} in this IFD.
return mExifTags.values().toArray(new ExifTag[mExifTags.size()]);
|
protected int | getId()Gets the ID of this IFD.
return mIfdId;
|
protected static int[] | getIfds()
return sIfds;
|
protected int | getOffsetToNextIfd()Gets the offset of next IFD.
return mOffsetToNextIfd;
|
protected ExifTag | getTag(short tagId)Gets the {@link ExifTag} with given tag id. Return null if there is no
such tag.
return mExifTags.get(tagId);
|
protected int | getTagCount()Gets the tags count in the IFD.
return mExifTags.size();
|
protected void | removeTag(short tagId)Removes the tag of the given ID
mExifTags.remove(tagId);
|
protected void | setOffsetToNextIfd(int offset)Sets the offset of next IFD.
mOffsetToNextIfd = offset;
|
protected ExifTag | setTag(ExifTag tag)Adds or replaces a {@link ExifTag}.
tag.setIfd(mIfdId);
return mExifTags.put(tag.getTagId(), tag);
|