Class ExifHelper


  • public class ExifHelper
    extends Object
    • Constructor Detail

      • ExifHelper

        public ExifHelper()
    • Method Detail

      • readDate

        public static Date readDate​(File file)
                             throws org.apache.commons.imaging.ImageReadException,
                                    IOException
        Throws:
        org.apache.commons.imaging.ImageReadException
        IOException
      • readMetadata

        public static org.apache.commons.imaging.common.ImageMetadata readMetadata​(File file)
                                                                            throws org.apache.commons.imaging.ImageReadException,
                                                                                   IOException
        Throws:
        org.apache.commons.imaging.ImageReadException
        IOException
      • setExifGPSTag

        public static void setExifGPSTag​(File jpegImageFile,
                                         File dst)
                                  throws IOException,
                                         org.apache.commons.imaging.ImageReadException,
                                         org.apache.commons.imaging.ImageWriteException
        Throws:
        IOException
        org.apache.commons.imaging.ImageReadException
        org.apache.commons.imaging.ImageWriteException
      • changeExifMetadata

        public static void changeExifMetadata​(File jpegImageFile,
                                              File dst)
                                       throws IOException,
                                              org.apache.commons.imaging.ImageReadException,
                                              org.apache.commons.imaging.ImageWriteException
        Throws:
        IOException
        org.apache.commons.imaging.ImageReadException
        org.apache.commons.imaging.ImageWriteException
      • writeMetadata

        public static void writeMetadata​(org.apache.commons.imaging.common.ImageMetadata metadata,
                                         File file)
                                  throws org.apache.commons.imaging.ImageWriteException,
                                         org.apache.commons.imaging.ImageReadException,
                                         IOException
        Throws:
        org.apache.commons.imaging.ImageWriteException
        org.apache.commons.imaging.ImageReadException
        IOException
      • main

        public static void main​(String[] args)
                         throws org.apache.commons.imaging.ImageReadException,
                                IOException
        Throws:
        org.apache.commons.imaging.ImageReadException
        IOException