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

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

public class CasioMakerNotesDecorator
extends ExifAttribute

This decorator is simplified and supposes the value keeps constant size. This is intended to adjust the offsets regarding the new position of the makernotes.

Author:
Mario De Weerd

Method Summary
static ExifAttribute decorate(ExifAttribute makerNote, byte[] buffer, int tiffHeaderStart, boolean bigEndian)
          Decorate the Attribute only if needed.
 int fillBuffer(byte[] buffer, int recordOffset, boolean bigEndian, int payloadOffset, int tiffHeaderOffset)
           
 
Methods inherited from class net.sf.bt747.j2se.app.exif.ExifAttribute
getCount, getFloatValue, getIntValue, getPayloadSize, getStringValue, getTag, getType, getValue, getValueIdx, getValueUnitSize, read, setCount, setFloatValue, setGpsFloatValue, setIntValue, setStringValue, setTag, setType, setValue, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

decorate

public static final ExifAttribute decorate(ExifAttribute makerNote,
                                           byte[] buffer,
                                           int tiffHeaderStart,
                                           boolean bigEndian)
Decorate the Attribute only if needed. Se Decorator pattern (Design Patterns) for information.

Parameters:
makerNote -
buffer -
tiffHeaderStart -
bigEndian -
Returns:
The decorated attribute.

fillBuffer

public int fillBuffer(byte[] buffer,
                      int recordOffset,
                      boolean bigEndian,
                      int payloadOffset,
                      int tiffHeaderOffset)
Overrides:
fillBuffer in class ExifAttribute