File: InternalExifLibrary.java

package info (click to toggle)
gpsprune 19.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,516 kB
  • sloc: java: 42,704; sh: 25; makefile: 24; python: 15
file content (28 lines) | stat: -rw-r--r-- 683 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package tim.prune.jpeg;

import java.io.File;

import tim.prune.jpeg.drew.ExifReader;
import tim.prune.jpeg.drew.ExifException;

/**
 * Class to act as an entry point to the internal exif library functions.
 * This should be the only class with dependence on the jpeg.drew package.
 */
public class InternalExifLibrary
{
	/**
	 * Use the _internal_ exif library to get the data from the given file
	 * @param inFile file to access
	 * @return Jpeg data if available, otherwise null
	 */
	public JpegData getJpegData(File inFile)
	{
		JpegData data = null;
		try {
			data = ExifReader.readMetadata(inFile);
		}
		catch (ExifException jpe) {} // data remains null
		return data;
	}
}