PropertyItem
Inheritance: java.lang.Object
public final class PropertyItem
Encapsulates a metadata property to be included in an image file. Not inheritable.
Methods
| Method | Description |
|---|---|
| getId() | Gets the ID of the property. |
| setId(int value) | Sets the ID of the property. |
| getLen() | Gets the length (in bytes) of the Value(.getValue/.setValue(byte[])) property. |
| setLen(int value) | Sets the length (in bytes) of the Value(.getValue/.setValue(byte[])) property. |
| getType() | Gets an integer that defines the type of data contained in the Value(.getValue/.setValue(byte[])) property. |
| setType(short value) | Sets an integer that defines the type of data contained in the Value(.getValue/.setValue(byte[])) property. |
| getValue() | Gets the value of the property item. |
| setValue(byte[] value) | Sets the value of the property item. |
getId()
public int getId()
Gets the ID of the property.
Returns: int - The integer that represents the ID of the property.
setId(int value)
public void setId(int value)
Sets the ID of the property.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | the ID of the property. |
getLen()
public int getLen()
Gets the length (in bytes) of the Value(.getValue/.setValue(byte[])) property.
Returns:
int - An integer that represents the length (in bytes) of the Value(.getValue/.setValue(byte[])) byte array.
setLen(int value)
public void setLen(int value)
Sets the length (in bytes) of the Value(.getValue/.setValue(byte[])) property.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | the length (in bytes) of the Value(.getValue/.setValue(byte[])) property. |
getType()
public short getType()
Gets an integer that defines the type of data contained in the Value(.getValue/.setValue(byte[])) property.
Returns:
short - An integer that defines the type of data contained in Value(.getValue/.setValue(byte[])).
setType(short value)
public void setType(short value)
Sets an integer that defines the type of data contained in the Value(.getValue/.setValue(byte[])) property.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | short | an integer that defines the type of data contained in the Value(.getValue/.setValue(byte[])) property. |
getValue()
public byte[] getValue()
Gets the value of the property item.
Returns: byte[] - A byte array that represents the value of the property item.
setValue(byte[] value)
public void setValue(byte[] value)
Sets the value of the property item.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | byte[] | the value of the property item. |