PreservedResourceBlock

Overview

PreservedResourceBlock is a class in Aspose.PSD FOSS for Java. Inherits from: ResourceBlock.

Adapts a raw-preserved image resource to the official ResourceBlock surface.

This class declares 11 methods for PreservedResourceBlock objects in Java programs. Available methods include: PreservedResourceBlock, 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.
minimalVersionintReadGets the minimal required PSD version.
idshortRead/WriteGets the unique identifier for the resource.
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
PreservedResourceBlock(resource: UnknownResource)Initializes a new instance of the PreservedResourceBlock class.
getDataSize() → intGets the resource data size in bytes.
getMinimalVersion() → intGets the minimal required PSD version.
save(stream: OutputStream)Not implemented in the FOSS edition — throws at runtime. Saves the resource block to the specified stream container.
getId() → shortGets the unique identifier for the resource.
setId(id: short)Sets the unique identifier for the resource.
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.
validateValues()Validates the resource values.

See Also