]> gitweb.fperrin.net Git - GpsPrune.git/blob - tim/prune/jpeg/InternalExifLibrary.java
Version 19, May 2018
[GpsPrune.git] / tim / prune / jpeg / InternalExifLibrary.java
1 package tim.prune.jpeg;
2
3 import java.io.File;
4
5 import tim.prune.jpeg.drew.ExifReader;
6 import tim.prune.jpeg.drew.ExifException;
7
8 /**
9  * Class to act as an entry point to the internal exif library functions.
10  * This should be the only class with dependence on the jpeg.drew package.
11  */
12 public class InternalExifLibrary
13 {
14         /**
15          * Use the _internal_ exif library to get the data from the given file
16          * @param inFile file to access
17          * @return Jpeg data if available, otherwise null
18          */
19         public JpegData getJpegData(File inFile)
20         {
21                 JpegData data = null;
22                 try {
23                         data = ExifReader.readMetadata(inFile);
24                 }
25                 catch (ExifException jpe) {} // data remains null
26                 return data;
27         }
28 }