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

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

public class ExifApp1
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
ExifApp1()
           
 
Method Summary
 void fillBuffer(byte[] buffer, int tiffHeaderStart)
           
 int getByteSize()
           
 ExifAttribute getExifAttribute(int tag)
           
 ExifAttribute getGpsAttribute(int tag)
           
 ExifAttribute getIfd0Attribute(int tag)
           
 byte[] getThumbnailData()
           
 ExifAttribute newExifAttribute(int tag, int type, int count)
           
 int read(byte[] buffer, int initialIdxInBuffer)
           
 void setExifAttribute(ExifAttribute atr)
           
 void setGpsAttribute(ExifAttribute atr)
           
 void setIfd0Attribute(ExifAttribute atr)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExifApp1

public ExifApp1()
Method Detail

newExifAttribute

public final ExifAttribute newExifAttribute(int tag,
                                            int type,
                                            int count)

read

public final int read(byte[] buffer,
                      int initialIdxInBuffer)

getByteSize

public final int getByteSize()

fillBuffer

public final void fillBuffer(byte[] buffer,
                             int tiffHeaderStart)

getIfd0Attribute

public final ExifAttribute getIfd0Attribute(int tag)

getExifAttribute

public final ExifAttribute getExifAttribute(int tag)

getGpsAttribute

public final ExifAttribute getGpsAttribute(int tag)

getThumbnailData

public final byte[] getThumbnailData()

setIfd0Attribute

public final void setIfd0Attribute(ExifAttribute atr)

setExifAttribute

public final void setExifAttribute(ExifAttribute atr)

setGpsAttribute

public final void setGpsAttribute(ExifAttribute atr)

toString

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