1 package tim.prune.jpeg;
4 import tim.prune.jpeg.drew.ExifReader;
5 import tim.prune.jpeg.drew.JpegException;
8 * Class to act as a gateway into the internal exif library functions.
9 * This should be the only class with dependence on the jpeg.drew package.
10 * Should not be included if external library will be used (eg Debian).
12 public class InternalExifLibrary implements ExifLibrary
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
19 public JpegData getJpegData(File inFile)
23 data = new ExifReader(inFile).extract();
25 catch (JpegException jpe) {} // data remains null
30 * Check whether the exifreader class can be correctly resolved
31 * @return true if it looks ok
33 public boolean looksOK()
36 String test = ExifReader.class.getName();
37 if (test != null) return true;
39 catch (LinkageError le) {}