net.sf.bt747.j2se.app.exif
Class ExifApp1
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ExifApp1
public ExifApp1()
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