android.media
Class ExifInterface

java.lang.Object
  extended by android.media.ExifInterface

public class ExifInterface
extends Object


Field Summary
static int ORIENTATION_FLIP_HORIZONTAL
           
static int ORIENTATION_FLIP_VERTICAL
           
static int ORIENTATION_NORMAL
           
static int ORIENTATION_ROTATE_180
           
static int ORIENTATION_ROTATE_270
           
static int ORIENTATION_ROTATE_90
           
static int ORIENTATION_TRANSPOSE
           
static int ORIENTATION_TRANSVERSE
           
static int ORIENTATION_UNDEFINED
           
static String TAG_APERTURE
           
static String TAG_DATETIME
           
static String TAG_EXPOSURE_TIME
           
static String TAG_FLASH
           
static String TAG_FOCAL_LENGTH
           
static String TAG_GPS_ALTITUDE
           
static String TAG_GPS_ALTITUDE_REF
           
static String TAG_GPS_DATESTAMP
           
static String TAG_GPS_LATITUDE
           
static String TAG_GPS_LATITUDE_REF
           
static String TAG_GPS_LONGITUDE
           
static String TAG_GPS_LONGITUDE_REF
           
static String TAG_GPS_PROCESSING_METHOD
           
static String TAG_GPS_TIMESTAMP
           
static String TAG_IMAGE_LENGTH
           
static String TAG_IMAGE_WIDTH
           
static String TAG_ISO
           
static String TAG_MAKE
           
static String TAG_MODEL
           
static String TAG_ORIENTATION
           
static String TAG_WHITE_BALANCE
           
static int WHITEBALANCE_AUTO
           
static int WHITEBALANCE_MANUAL
           
 
Constructor Summary
ExifInterface(String filename)
           
 
Method Summary
 double getAltitude(double defaultValue)
           
 String getAttribute(String tag)
           
 double getAttributeDouble(String tag, double defaultValue)
           
 int getAttributeInt(String tag, int defaultValue)
           
 boolean getLatLong(float[] output)
           
 byte[] getThumbnail()
           
 boolean hasThumbnail()
           
 void saveAttributes()
           
 void setAttribute(String tag, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_ORIENTATION

public static final String TAG_ORIENTATION
See Also:
Constant Field Values

TAG_DATETIME

public static final String TAG_DATETIME
See Also:
Constant Field Values

TAG_MAKE

public static final String TAG_MAKE
See Also:
Constant Field Values

TAG_MODEL

public static final String TAG_MODEL
See Also:
Constant Field Values

TAG_FLASH

public static final String TAG_FLASH
See Also:
Constant Field Values

TAG_IMAGE_WIDTH

public static final String TAG_IMAGE_WIDTH
See Also:
Constant Field Values

TAG_IMAGE_LENGTH

public static final String TAG_IMAGE_LENGTH
See Also:
Constant Field Values

TAG_GPS_LATITUDE

public static final String TAG_GPS_LATITUDE
See Also:
Constant Field Values

TAG_GPS_LONGITUDE

public static final String TAG_GPS_LONGITUDE
See Also:
Constant Field Values

TAG_GPS_LATITUDE_REF

public static final String TAG_GPS_LATITUDE_REF
See Also:
Constant Field Values

TAG_GPS_LONGITUDE_REF

public static final String TAG_GPS_LONGITUDE_REF
See Also:
Constant Field Values

TAG_EXPOSURE_TIME

public static final String TAG_EXPOSURE_TIME
See Also:
Constant Field Values

TAG_APERTURE

public static final String TAG_APERTURE
See Also:
Constant Field Values

TAG_ISO

public static final String TAG_ISO
See Also:
Constant Field Values

TAG_GPS_ALTITUDE

public static final String TAG_GPS_ALTITUDE
See Also:
Constant Field Values

TAG_GPS_ALTITUDE_REF

public static final String TAG_GPS_ALTITUDE_REF
See Also:
Constant Field Values

TAG_GPS_TIMESTAMP

public static final String TAG_GPS_TIMESTAMP
See Also:
Constant Field Values

TAG_GPS_DATESTAMP

public static final String TAG_GPS_DATESTAMP
See Also:
Constant Field Values

TAG_WHITE_BALANCE

public static final String TAG_WHITE_BALANCE
See Also:
Constant Field Values

TAG_FOCAL_LENGTH

public static final String TAG_FOCAL_LENGTH
See Also:
Constant Field Values

TAG_GPS_PROCESSING_METHOD

public static final String TAG_GPS_PROCESSING_METHOD
See Also:
Constant Field Values

ORIENTATION_UNDEFINED

public static final int ORIENTATION_UNDEFINED
See Also:
Constant Field Values

ORIENTATION_NORMAL

public static final int ORIENTATION_NORMAL
See Also:
Constant Field Values

ORIENTATION_FLIP_HORIZONTAL

public static final int ORIENTATION_FLIP_HORIZONTAL
See Also:
Constant Field Values

ORIENTATION_ROTATE_180

public static final int ORIENTATION_ROTATE_180
See Also:
Constant Field Values

ORIENTATION_FLIP_VERTICAL

public static final int ORIENTATION_FLIP_VERTICAL
See Also:
Constant Field Values

ORIENTATION_TRANSPOSE

public static final int ORIENTATION_TRANSPOSE
See Also:
Constant Field Values

ORIENTATION_ROTATE_90

public static final int ORIENTATION_ROTATE_90
See Also:
Constant Field Values

ORIENTATION_TRANSVERSE

public static final int ORIENTATION_TRANSVERSE
See Also:
Constant Field Values

ORIENTATION_ROTATE_270

public static final int ORIENTATION_ROTATE_270
See Also:
Constant Field Values

WHITEBALANCE_AUTO

public static final int WHITEBALANCE_AUTO
See Also:
Constant Field Values

WHITEBALANCE_MANUAL

public static final int WHITEBALANCE_MANUAL
See Also:
Constant Field Values
Constructor Detail

ExifInterface

public ExifInterface(String filename)
              throws IOException
Throws:
IOException
Method Detail

getAttribute

public String getAttribute(String tag)

getAttributeInt

public int getAttributeInt(String tag,
                           int defaultValue)

getAttributeDouble

public double getAttributeDouble(String tag,
                                 double defaultValue)

setAttribute

public void setAttribute(String tag,
                         String value)

saveAttributes

public void saveAttributes()
                    throws IOException
Throws:
IOException

hasThumbnail

public boolean hasThumbnail()

getThumbnail

public byte[] getThumbnail()

getLatLong

public boolean getLatLong(float[] output)

getAltitude

public double getAltitude(double defaultValue)


Copyright © 2008-2012. All Rights Reserved.