ResourceBlock
Overview
ResourceBlock is a class in Aspose.PSD FOSS for Java.
Represents a PSD image resource block.
This class declares 10 methods for ResourceBlock objects in Java programs.
Available methods include: getDataSize, getId, getMinimalVersion, getName, getSignature, getSize, save, setId, setName, validateValues.
Public members are accessible to any Java application after installing the Aspose.PSD FOSS for Java package.
Properties: RESOURCE_BLOCK_ME_SA_SIGNATURE, RESOURCE_BLOCK_SIGNATURE, dataSize, id, minimalVersion, name, and 2 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
dataSize | int | Read | Gets the resource data size in bytes. |
id | short | Read/Write | Gets the unique identifier for the resource. |
minimalVersion | int | Read | Gets the minimal required PSD version. |
name | String | Read/Write | Gets the resource name. |
signature | int | Read | Gets the resource signature. |
size | int | Read | Gets the resource block size in bytes including its data. |
RESOURCE_BLOCK_SIGNATURE | int | Read | The regular Photoshop resource signature. |
RESOURCE_BLOCK_ME_SA_SIGNATURE | int | Read | The ImageReady resource signature. |
Methods
| Signature | Description |
|---|---|
getDataSize() → int | Gets the resource data size in bytes. |
getId() → short | Gets the unique identifier for the resource. |
setId(id: short) | Sets the unique identifier for the resource. |
getMinimalVersion() → int | Gets the minimal required PSD version. |
getName() → String | Gets the resource name. |
setName(name: String) | Sets the resource name. |
getSignature() → int | Gets the resource signature. |
getSize() → int | Gets the resource block size in bytes including its data. |
save(stream: OutputStream) | Saves the resource block to the specified stream. |
validateValues() | Validates the resource values. |