PsdSectionReader
Overview
PsdSectionReader is a class in Aspose.PSD FOSS for Java.
Provides bounded reads for PSD/PSB sections that are stored in memory by this implementation.
This class declares 4 methods for PsdSectionReader objects in Java programs.
Available methods include: getMemoryBackedLength, getNestedMemoryBackedLength, readBytes, validateSignedLength.
Public members are accessible to any Java application after installing the Aspose.PSD FOSS for Java package.
Methods
| Signature | Description |
|---|---|
readBytes(reader: BigEndianReader, length: long, sectionName: String) → byte[] | Reads a declared section payload after validating stream boundaries and the in-memory size limit. |
getMemoryBackedLength(reader: BigEndianReader, length: long, sectionName: String) → int | Validates a declared section length and returns the equivalent in-memory array size. |
validateSignedLength(length: long, sectionName: String) → long | Validates a signed length field that belongs to a bounded section. |
getNestedMemoryBackedLength(reader: BigEndianReader, length: long, sectionEnd: long, sectionName: String) → int | Validates that a nested payload stays inside the already-bounded enclosing section. |