public class TIFFTagWrapper extends Object
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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() |
public TIFFTagWrapper(int tagNumber, int type, String content, int value, int count)
public TIFFTagWrapper(int tagNumber, int type, Object content, int valueOffset, int count, byte[] prefix, byte[] suffix)
TIFFTagWrapper
constructor.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)public Object getContent()
public void setContent(Object content)
public int getValue()
public void setValue(int value)
public int getCount()
public void setCount(int count)
public byte[] getPrefix()
public void setPrefix(byte[] prefix)
public byte[] getSuffix()
public void setSuffix(byte[] suffix)
public int getType()
public void setType(int type)
public int getNumber()
public void setNumber(int number)
Copyright © 2006–2015 GeoSolutions. All rights reserved.