public class ShmdResource extends LayerResource
Class ShmdResource. Metadata settings
LayerResource
Modifier and Type | Field and Description |
---|---|
static int |
SUB_RESOURCE_HEADER_LENGTH
The sub resource header length
|
static int |
TYPE_TOOL_KEY
The type tool info key.
|
PSB_RESOURCE_SIGNATURE, RESOURCE_SIGNATURE
Constructor and Description |
---|
ShmdResource()
Initializes a new instance of the
ShmdResource class. |
ShmdResource(byte[] data)
Initializes a new instance of the
ShmdResource class. |
Modifier and Type | Method and Description |
---|---|
int |
getKey()
Gets the layer resource key.
|
Date |
getLayerCreatedDateTime()
Gets the layer created time.
|
int |
getLength()
Gets the layer resource length in bytes.
|
int |
getPsdVersion()
Gets the psd version.
|
int |
getSignature()
Gets the signature.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the specified stream container.
|
void |
setLayerCreatedDateTime(Date value)
Sets the layer created time.
|
toString
public static final int TYPE_TOOL_KEY
The type tool info key.
public static final int SUB_RESOURCE_HEADER_LENGTH
The sub resource header length
public ShmdResource()
Initializes a new instance of the ShmdResource
class.
public ShmdResource(byte[] data)
Initializes a new instance of the ShmdResource
class.
data
- The data of the resource.public final Date getLayerCreatedDateTime()
Gets the layer created time. If Layer created time not specified then returns new DateTime(0)
public final void setLayerCreatedDateTime(Date value)
Sets the layer created time. If Layer created time not specified then returns new DateTime(0)
value
- the layer created time.public int getSignature()
Gets the 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 psd version.
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.