public class UnknownResource extends LayerResource
The unknown resource.
PSB_RESOURCE_SIGNATURE, RESOURCE_SIGNATURE
Constructor and Description |
---|
UnknownResource(int signature,
int key)
Initializes a new instance of the
UnknownResource class. |
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Gets or sets the data.
|
int |
getKey()
Gets the layer resource key.
|
int |
getLength()
Gets the layer resource length in bytes.
|
int |
getPsdVersion()
Gets the minimal psd version required for layer resource.
|
int |
getSignature()
Gets the layer resource signature.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the specified stream container.
|
void |
setData(byte[] value) |
toString
public UnknownResource(int signature, int key)
Initializes a new instance of the UnknownResource
class.
signature
- The signature.key
- The resource key.public byte[] getData()
Gets or sets the data.
Value: The data.public void setData(byte[] value)
public int getSignature()
Gets the layer resource signature.
getSignature
in class LayerResource
public int getKey()
Gets the layer resource key.
getKey
in class LayerResource
public int getLength()
Gets the layer resource length in bytes.
getLength
in class LayerResource
public int getPsdVersion()
Gets the minimal psd version required for layer resource. 0 indicates no restrictions.
getPsdVersion
in class LayerResource
public void save(StreamContainer streamContainer, int psdVersion)
Saves the specified stream container.
save
in class LayerResource
streamContainer
- The stream container.psdVersion
- The PSD version.