|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.imaging.fileformats.psd.ResourceBlock
public abstract class ResourceBlock
The resource block.
Constructor Summary | |
---|---|
ResourceBlock()
|
Method Summary | |
---|---|
abstract int |
getDataSize()
Gets the resource data size in bytes. |
short |
getID()
Gets or sets the unique identifier for the resource. |
abstract int |
getMinimalVersion()
Gets the minimal required psd version. |
java.lang.String |
getName()
Gets or sets the resource name. |
int |
getSignature()
Gets the resource signature. |
int |
getSize()
Gets the resource block size in bytes including its data. |
void |
save(StreamContainer stream)
Saves the resource block to the specified stream. |
protected abstract void |
saveData(StreamContainer streamContainer)
Saves the resource block data. |
void |
setID(short value)
|
void |
setName(java.lang.String value)
|
void |
validateValues()
Validates the resource values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceBlock()
Method Detail |
---|
public abstract int getDataSize()
Gets the resource data size in bytes.
Value: The resource data size.
public short getID()
Gets or sets the unique identifier for the resource.
Value: The unique identifier for the resource.
public abstract int getMinimalVersion()
Gets the minimal required psd version.
Value: The minimal psd version.
public java.lang.String getName()
Gets or sets the resource name. Pascal string, padded to make the size even (a null name consists of two bytes of 0).
Value: The resource name.
public int getSignature()
Gets the resource signature. Should be always '8BIM'.
Value: The resource signature.
public int getSize()
Gets the resource block size in bytes including its data.
Value: The resource block size.
public void save(StreamContainer stream)
Saves the resource block to the specified stream.
stream
- The stream to save the resource block to.protected abstract void saveData(StreamContainer streamContainer)
Saves the resource block data.
streamContainer
- The stream container to save to.public void setID(short value)
public void setName(java.lang.String value)
public void validateValues()
Validates the resource values.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |