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

java.lang.Object
  extended by net.sf.bt747.j2se.app.exif.ExifAttribute
Direct Known Subclasses:
CasioMakerNotesDecorator, OlympusMakerNotesDecorator

public class ExifAttribute
extends java.lang.Object

Author:
Mario

Constructor Summary
ExifAttribute()
           
ExifAttribute(int tag, int type, int count, boolean bigEndian)
           
 
Method Summary
 int fillBuffer(byte[] buffer, int recordOffset, boolean bigEndian, int payloadOffset, int tiffHeaderOffset)
           
 int getCount()
           
 float getFloatValue(int idx)
           
 int getIntValue(int idx)
           
 int getPayloadSize()
           
 java.lang.String getStringValue()
           
 int getTag()
           
 int getType()
           
 byte[] getValue()
           
 int getValueIdx()
           
static int getValueUnitSize(int valueType)
           
 int read(byte[] buffer, int currentIdxInBuffer, int tiffHeaderStart, boolean bigEndian)
           
 void setCount(int count)
           
 void setFloatValue(int idx, int nom, int den)
           
 float setGpsFloatValue(double d)
           
 void setIntValue(int idx, int val)
           
 void setStringValue(java.lang.String s)
           
 void setTag(int tag)
           
 void setType(int type)
           
 void setValue(byte[] value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExifAttribute

public ExifAttribute()

ExifAttribute

public ExifAttribute(int tag,
                     int type,
                     int count,
                     boolean bigEndian)
Method Detail

getValueUnitSize

public static final int getValueUnitSize(int valueType)

getValueIdx

public final int getValueIdx()

read

public final int read(byte[] buffer,
                      int currentIdxInBuffer,
                      int tiffHeaderStart,
                      boolean bigEndian)

toString

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

getPayloadSize

public final int getPayloadSize()

fillBuffer

public int fillBuffer(byte[] buffer,
                      int recordOffset,
                      boolean bigEndian,
                      int payloadOffset,
                      int tiffHeaderOffset)

setTag

public final void setTag(int tag)
Parameters:
tag - the tag to set

getTag

public final int getTag()
Returns:
the tag

setType

public final void setType(int type)
Parameters:
type - the type to set

getType

public final int getType()
Returns:
the type

setCount

public final void setCount(int count)
Parameters:
count - the count to set

getCount

public final int getCount()
Returns:
the count

setValue

public final void setValue(byte[] value)
Parameters:
value - the value to set

getValue

public final byte[] getValue()
Returns:
the value

getFloatValue

public final float getFloatValue(int idx)

getStringValue

public final java.lang.String getStringValue()

getIntValue

public final int getIntValue(int idx)

setIntValue

public final void setIntValue(int idx,
                              int val)

setFloatValue

public final void setFloatValue(int idx,
                                int nom,
                                int den)

setGpsFloatValue

public final float setGpsFloatValue(double d)

setStringValue

public final void setStringValue(java.lang.String s)