/** * Gets the value as a String. This method should be used for tags of type * {@link #TYPE_ASCII}. * * @param defaultValue the String to return if the tag's value does not * exist or cannot be converted to a String. * @return the tag's value as a String, or the defaultValue. */ public String getValueAsString( String defaultValue ) { String s = getValueAsString(); if( s == null ) { return defaultValue; } return s; }
/** * Gets the value as a String. This method should be used for tags of type * {@link #TYPE_ASCII}. * * @param defaultValue the String to return if the tag's value does not * exist or cannot be converted to a String. * @return the tag's value as a String, or the defaultValue. */ public String getValueAsString( String defaultValue ) { String s = getValueAsString(); if( s == null ) { return defaultValue; } return s; }
/** * @see #getTagValue */ public String getTagStringValue( int tagId, int ifdId ) { ExifTag t = getTag( tagId, ifdId ); if( t == null ) { return null; } return t.getValueAsString(); }
/** * @see #getTagValue */ public String getTagStringValue( int tagId, int ifdId ) { ExifTag t = getTag( tagId, ifdId ); if( t == null ) { return null; } return t.getValueAsString(); }
Date date = ExifInterface.getDateTime( tag.getValueAsString(), TimeZone.getDefault() ); if( null != date ) { exifString += java.text.DateFormat.getDateTimeInstance().format( date );
string.append( "<b>Exif version: </b> " + tag.getValueAsString() + "<br>" );