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

NameTypeAccessDescription
dataSizeintReadGets the resource data size in bytes.
idshortRead/WriteGets the unique identifier for the resource.
minimalVersionintReadGets the minimal required PSD version.
nameStringRead/WriteGets the resource name.
signatureintReadGets the resource signature.
sizeintReadGets the resource block size in bytes including its data.
RESOURCE_BLOCK_SIGNATUREintReadThe regular Photoshop resource signature.
RESOURCE_BLOCK_ME_SA_SIGNATUREintReadThe ImageReady resource signature.

Methods

SignatureDescription
getDataSize() → intGets the resource data size in bytes.
getId() → shortGets the unique identifier for the resource.
setId(id: short)Sets the unique identifier for the resource.
getMinimalVersion() → intGets the minimal required PSD version.
getName() → StringGets the resource name.
setName(name: String)Sets the resource name.
getSignature() → intGets the resource signature.
getSize() → intGets 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.

See Also