it.geosolutions.imageio.plugins.exif
Class TIFFTagWrapper

java.lang.Object
  extended by it.geosolutions.imageio.plugins.exif.TIFFTagWrapper

public class TIFFTagWrapper
extends Object

Author:
Daniele Romagnoli, GeoSolutions SaS A class holding TIFF Tag properties like TAG ID (number), count, type, value/offset, content
See Also:
TIFF specification, page 15

Constructor Summary
TIFFTagWrapper(int tagNumber, int type, Object content, int valueOffset, int count, byte[] prefix, byte[] suffix)
          A fully specified TIFFTagWrapper constructor.
TIFFTagWrapper(int tagNumber, int type, String content, int value, int count)
           
 
Method Summary
 Object getContent()
           
 int getCount()
           
 int getNumber()
           
 byte[] getPrefix()
           
 byte[] getSuffix()
           
 int getType()
           
 int getValue()
           
 void setContent(Object content)
           
 void setCount(int count)
           
 void setNumber(int number)
           
 void setPrefix(byte[] prefix)
           
 void setSuffix(byte[] suffix)
           
 void setType(int type)
           
 void setValue(int value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TIFFTagWrapper

public TIFFTagWrapper(int tagNumber,
                      int type,
                      String content,
                      int value,
                      int count)

TIFFTagWrapper

public TIFFTagWrapper(int tagNumber,
                      int type,
                      Object content,
                      int valueOffset,
                      int count,
                      byte[] prefix,
                      byte[] suffix)
A fully specified TIFFTagWrapper constructor.

Parameters:
tagNumber - the ID of the underlying TIFF Tag
type - the type of the TIFF Field (BYTE, ASCII, SHORT, LONG, ...)
content - the content (currently, a byte[]) to be set for that field (without any prefix/suffix).
valueOffset - the value of this
count - the number of values. (this value is ignored in case of not null content/prefix/suffix since it will be computed on top of these byte arrays)
prefix - an optional byte[] to be inserted before the specified content to fully represent the field (as an instance, the UserComment content need to be prefixed by a 8 byte array representing the character code)
suffix - an optional byte[] to be appended after the specified content to fully represent the field (as an instance, a byte[]{0} null char to be appended to an ASCII content)
See Also:
UserComment character code prefix
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getContent

public Object getContent()

setContent

public void setContent(Object content)

getValue

public int getValue()

setValue

public void setValue(int value)

getCount

public int getCount()

setCount

public void setCount(int count)

getPrefix

public byte[] getPrefix()

setPrefix

public void setPrefix(byte[] prefix)

getSuffix

public byte[] getSuffix()

setSuffix

public void setSuffix(byte[] suffix)

getType

public int getType()

setType

public void setType(int type)

getNumber

public int getNumber()

setNumber

public void setNumber(int number)


Copyright © 2006–2013 GeoSolutions. All rights reserved.