/** * Returns the {@link IfdData} object corresponding to a given IFD if it * exists or null. */ protected IfdData getIfdData( int ifdId ) { if( ExifTag.isValidIfd( ifdId ) ) { return mIfdDatas[ifdId]; } return null; }
/** * Returns the {@link IfdData} object corresponding to a given IFD if it * exists or null. */ protected IfdData getIfdData( int ifdId ) { if( ExifTag.isValidIfd( ifdId ) ) { return mIfdDatas[ifdId]; } return null; }
/** * Gets an ExifTag for an IFD other than the tag's default. * * @see #getTag */ public ExifTag getTag( int tagId, int ifdId ) { if( ! ExifTag.isValidIfd( ifdId ) ) { return null; } return mData.getTag( getTrueTagKey( tagId ), ifdId ); }
/** * Adds the given ExifTag to the given IFD and returns an existing ExifTag * with the same TID or null if none exist. */ protected ExifTag addTag( ExifTag tag, int ifdId ) { if( tag != null && ExifTag.isValidIfd( ifdId ) ) { IfdData ifdData = getOrCreateIfdData( ifdId ); return ifdData.setTag( tag ); } return null; }
/** * Adds the given ExifTag to the given IFD and returns an existing ExifTag * with the same TID or null if none exist. */ protected ExifTag addTag( ExifTag tag, int ifdId ) { if( tag != null && ExifTag.isValidIfd( ifdId ) ) { IfdData ifdData = getOrCreateIfdData( ifdId ); return ifdData.setTag( tag ); } return null; }
/** * Gets an ExifTag for an IFD other than the tag's default. * * @see #getTag */ public ExifTag getTag( int tagId, int ifdId ) { if( ! ExifTag.isValidIfd( ifdId ) ) { return null; } return mData.getTag( getTrueTagKey( tagId ), ifdId ); }
return TAG_NULL; if( ExifTag.isValidType( tagType ) && ExifTag.isValidIfd( defaultIfd ) ) { int tagDef = defineTag( defaultIfd, tagId ); if( tagDef == TAG_NULL ) { defaultCheck = true; if( ! ExifTag.isValidIfd( i ) ) { return TAG_NULL;
return TAG_NULL; if( ExifTag.isValidType( tagType ) && ExifTag.isValidIfd( defaultIfd ) ) { int tagDef = defineTag( defaultIfd, tagId ); if( tagDef == TAG_NULL ) { defaultCheck = true; if( ! ExifTag.isValidIfd( i ) ) { return TAG_NULL;