List of usage examples for org.apache.commons.imaging.formats.tiff TiffField getIntArrayValue
public int[] getIntArrayValue() throws ImageReadException
From source file:joachimeichborn.geotag.io.jpeg.PictureMetadataReader.java
private int[] getTagIntValue(final TagInfo aTagInfo) { if (jpegMetadata != null) { final TiffField field = jpegMetadata.findEXIFValueWithExactMatch(aTagInfo); if (field != null) { final FieldType fieldType = field.getFieldType(); if (fieldType.getType() == FieldType.SHORT.getType()) { try { return field.getIntArrayValue(); } catch (ImageReadException e) { logger.fine("Failed to read " + aTagInfo + " from " + pictureFile + ": " + e.getMessage()); }//from w w w.j a va 2 s . c o m } } } return null; }