public final class PropertyItem extends Object
Encapsulates a metadata property to be included in an image file. Not inheritable.
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Gets the ID of the property.
|
int |
getLen()
Gets the length (in bytes) of the
Value(PropertyItem.getValue()/PropertyItem.setValue(byte[])) property. |
short |
getType()
Gets an integer that defines the type of data contained in the
Value(PropertyItem.getValue()/PropertyItem.setValue(byte[])) property. |
byte[] |
getValue()
Gets the value of the property item.
|
void |
setId(int value)
Sets the ID of the property.
|
void |
setLen(int value)
Sets the length (in bytes) of the
Value(PropertyItem.getValue()/PropertyItem.setValue(byte[])) property. |
void |
setType(short value)
Sets an integer that defines the type of data contained in the
Value(PropertyItem.getValue()/PropertyItem.setValue(byte[])) property. |
void |
setValue(byte[] value)
Sets the value of the property item.
|
public int getId()
Gets the ID of the property.
public void setId(int value)
Sets the ID of the property.
value - the ID of the property.public int getLen()
Gets the length (in bytes) of the Value(PropertyItem.getValue()/PropertyItem.setValue(byte[])) property.
Value(PropertyItem.getValue()/PropertyItem.setValue(byte[])) byte array.public void setLen(int value)
Sets the length (in bytes) of the Value(PropertyItem.getValue()/PropertyItem.setValue(byte[])) property.
value - the length (in bytes) of the Value(PropertyItem.getValue()/PropertyItem.setValue(byte[])) property.public short getType()
Gets an integer that defines the type of data contained in the Value(PropertyItem.getValue()/PropertyItem.setValue(byte[])) property.
Value(PropertyItem.getValue()/PropertyItem.setValue(byte[])).public void setType(short value)
Sets an integer that defines the type of data contained in the Value(PropertyItem.getValue()/PropertyItem.setValue(byte[])) property.
value - an integer that defines the type of data contained in the Value(PropertyItem.getValue()/PropertyItem.setValue(byte[])) property.public byte[] getValue()
Gets the value of the property item.
public void setValue(byte[] value)
Sets the value of the property item.
value - the value of the property item.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.