it.geosolutions.imageio.plugins.exif
Class TIFFTagWrapper
java.lang.Object
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)
|
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 Tagtype
- 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 thiscount
- 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
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–2014 GeoSolutions. All rights reserved.