net.sf.bt747.j2se.app.exif
Class ExifJPG

java.lang.Object
  extended by net.sf.bt747.j2se.app.exif.ExifJPG

public class ExifJPG
extends java.lang.Object

Author:
Mario De Weerd Reading and writing the relevant EXIF data should not be too complicated. Strategy is to read the header and the EXIF data. Reading first 64kB + SOI size bytes is sufficient. EXIF data must be stored in a manner that allows reconstruction later. Writing Exif data consists in replacing the APP1 Block and updating the SOI Marker. Specification at http://www.exif.org/Exif2-2.PDF

Constructor Summary
ExifJPG()
           
 
Method Summary
 boolean copyTo(BT747Path path)
           
 ExifAttribute getExifAttribute(int tag)
           
 ExifAttribute getGpsAttribute(int tag)
           
 void setDifferential(boolean isDifferential)
           
 void setExifAttribute(ExifAttribute atr)
           
 boolean setFilePath(BT747Path p)
           
 void setGpsAltitudeMSL(float altitude)
           
 void setGpsAttribute(ExifAttribute atr)
           
 void setGpsHDOP(float hdopX100)
          Attention: also set GPS HDOP (also sets GpsMeasureMode)
 void setGpsMeasureMode(boolean is3d)
          Attention: also
 void setGpsPDOP(int pdopX100)
          Attention: also set GPS PDOP (also sets GpsMeasureMode)
 void setGpsPosition(double lat, double lon)
           
 void setGpsSatInformation(java.lang.String str)
           
 void setGpsSpeedKmH(float speed)
          Sets the speed
 void setGpsStatus(boolean measurementInProgressA)
          Attention : related to HDOP/PDOP reading.
 void setGpsTime(int year, int month, int day, int hour, int minutes, int seconds)
           
 void setGpsTrack(float heading)
          Sets the heading.
 void setUsedSoftWare()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExifJPG

public ExifJPG()
Method Detail

setFilePath

public final boolean setFilePath(BT747Path p)

getExifAttribute

public final ExifAttribute getExifAttribute(int tag)

getGpsAttribute

public final ExifAttribute getGpsAttribute(int tag)

setExifAttribute

public final void setExifAttribute(ExifAttribute atr)

setGpsAttribute

public final void setGpsAttribute(ExifAttribute atr)

setGpsPosition

public final void setGpsPosition(double lat,
                                 double lon)

setGpsAltitudeMSL

public final void setGpsAltitudeMSL(float altitude)

setGpsTime

public final void setGpsTime(int year,
                             int month,
                             int day,
                             int hour,
                             int minutes,
                             int seconds)

setDifferential

public final void setDifferential(boolean isDifferential)

setGpsSatInformation

public final void setGpsSatInformation(java.lang.String str)

setGpsStatus

public final void setGpsStatus(boolean measurementInProgressA)
Attention : related to HDOP/PDOP reading.

Parameters:
measurementInProgressA -

setGpsMeasureMode

public final void setGpsMeasureMode(boolean is3d)
Attention: also


setGpsHDOP

public final void setGpsHDOP(float hdopX100)
Attention: also set GPS HDOP (also sets GpsMeasureMode)


setGpsPDOP

public final void setGpsPDOP(int pdopX100)
Attention: also set GPS PDOP (also sets GpsMeasureMode)


setGpsSpeedKmH

public final void setGpsSpeedKmH(float speed)
Sets the speed


setGpsTrack

public final void setGpsTrack(float heading)
Sets the heading.


setUsedSoftWare

public final void setUsedSoftWare()

copyTo

public final boolean copyTo(BT747Path path)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object