/** * @return the model of the camera used. */ public String getCameraModel() { return getExifTagValue("model"); }
/** * @return the make of the camera, i.e. Nikon, Canon, Sony. */ public String getCameraMake() { return getExifTagValue("make"); }
/** * @return the unique image id for the photo. */ public String getImageUniqueID() { return getExifTagValue("imageUniqueID"); }
/** * @return the make of the camera, i.e. Nikon, Canon, Sony. */ public String getCameraMake() { return getExifTagValue("make"); }
/** * @return the model of the camera used. */ public String getCameraModel() { return getExifTagValue("model"); }
/** * @return the unique image id for the photo. */ public String getImageUniqueID() { return getExifTagValue("imageUniqueID"); }
/** * @return {@link Boolean#TRUE} if the flash was used. */ public Boolean getFlashUsed() { String flash = getExifTagValue("flash"); return flash == null ? null : Boolean.valueOf(flash); }
/** * @return {@link Boolean#TRUE} if the flash was used. */ public Boolean getFlashUsed() { String flash = getExifTagValue("flash"); return flash == null ? null : Boolean.valueOf(flash); }
/** * @return the exposure time used. */ public Float getExposureTime() throws ParseException { String exposure = getExifTagValue("exposure"); if (exposure == null) { return null; } else { try { return Float.valueOf(exposure); } catch (NumberFormatException nfe) { throw new ParseException("Invalid exposure field " + exposure, nfe); } } }
/** * @return the exposure time used. */ public Float getExposureTime() throws ParseException { String exposure = getExifTagValue("exposure"); if (exposure == null) { return null; } else { try { return Float.valueOf(exposure); } catch (NumberFormatException nfe) { throw new ParseException("Invalid exposure field " + exposure, nfe); } } }
/** * @return the iso equivalent value used. * @throws ParseException if the value was not parsable as an integer. */ public Integer getIsoEquivalent() throws ParseException { String iso = getExifTagValue("iso"); if (iso == null) { return null; } else { try { return Integer.valueOf(iso); } catch (NumberFormatException nfe) { throw new ParseException("Invalid Iso field " + iso, nfe); } } }
/** * @return the distance to the subject. * @throws ParseException if the value is not a valid floating point number. */ public Float getDistance() throws ParseException { String distance = getExifTagValue("distance"); if (distance == null) { return null; } else { try { return Float.valueOf(distance); } catch (NumberFormatException nfe) { throw new ParseException("Invalid distance field " + distance, nfe); } } }
/** * @return the iso equivalent value used. * @throws ParseException if the value was not parsable as an integer. */ public Integer getIsoEquivalent() throws ParseException { String iso = getExifTagValue("iso"); if (iso == null) { return null; } else { try { return Integer.valueOf(iso); } catch (NumberFormatException nfe) { throw new ParseException("Invalid Iso field " + iso, nfe); } } }
/** * @return the distance to the subject. * @throws ParseException if the value is not a valid floating point number. */ public Float getDistance() throws ParseException { String distance = getExifTagValue("distance"); if (distance == null) { return null; } else { try { return Float.valueOf(distance); } catch (NumberFormatException nfe) { throw new ParseException("Invalid distance field " + distance, nfe); } } }
/** * @return the fstop value used. * @throws ParseException if the value is not a valid floating point number. */ public Float getApetureFNumber() throws ParseException { String fstop = getExifTagValue("fstop"); if (fstop == null) { return null; } else { try { return Float.valueOf(fstop); } catch (NumberFormatException nfe) { throw new ParseException("Invalid fstop field " + fstop, nfe); } } }
/** * @return the fstop value used. * @throws ParseException if the value is not a valid floating point number. */ public Float getApetureFNumber() throws ParseException { String fstop = getExifTagValue("fstop"); if (fstop == null) { return null; } else { try { return Float.valueOf(fstop); } catch (NumberFormatException nfe) { throw new ParseException("Invalid fstop field " + fstop, nfe); } } }
/** * @return the time the photo was taken. * @throws ParseException if the value is not a number, represented as a long. */ public Date getTime() throws ParseException { String time = getExifTagValue("time"); if (time == null) { return null; } else { try { return new Date(Long.parseLong(time)); } catch (NumberFormatException nfe) { throw new ParseException("Invalid time field " + time, nfe); } } }
/** * @return the focal length used. * @throws ParseException if the value is not a valid floating point number. */ public Float getFocalLength() throws ParseException { String focalLength = getExifTagValue("focallength"); if (focalLength == null) { return null; } else { try { return Float.valueOf(focalLength); } catch (NumberFormatException nfe) { throw new ParseException("Invalid focal length " + focalLength, nfe); } } }
/** * @return the time the photo was taken. * @throws ParseException if the value is not a number, represented as a long. */ public Date getTime() throws ParseException { String time = getExifTagValue("time"); if (time == null) { return null; } else { try { return new Date(Long.parseLong(time)); } catch (NumberFormatException nfe) { throw new ParseException("Invalid time field " + time, nfe); } } }
/** * @return the focal length used. * @throws ParseException if the value is not a valid floating point number. */ public Float getFocalLength() throws ParseException { String focalLength = getExifTagValue("focallength"); if (focalLength == null) { return null; } else { try { return Float.valueOf(focalLength); } catch (NumberFormatException nfe) { throw new ParseException("Invalid focal length " + focalLength, nfe); } } }