com.aspose.imaging.fileformats.psd.resources
Class UnknownResource

java.lang.Object
  extended by com.aspose.imaging.fileformats.psd.ResourceBlock
      extended by com.aspose.imaging.fileformats.psd.resources.UnknownResource

public class UnknownResource
extends ResourceBlock

The unknown resource. When a resource block is not recognized then this resource block is created.


Constructor Summary
UnknownResource(byte[] data)
           Initializes a new instance of the UnknownResource class.
 
Method Summary
 byte[] getData()
           Gets the resource data.
 int getDataSize()
           Gets the resource data size in bytes.
 int getMinimalVersion()
           Gets the minimal required psd version.
protected  void saveData(StreamContainer streamContainer)
           Saves the resource block data.
 
Methods inherited from class com.aspose.imaging.fileformats.psd.ResourceBlock
getID, getName, getSignature, getSize, save, setID, setName, validateValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnknownResource

public UnknownResource(byte[] data)

Initializes a new instance of the UnknownResource class.

Parameters:
data - The resource data.
Method Detail

getData

public byte[] getData()

Gets the resource data.

Value: The resource data.


getDataSize

public int getDataSize()

Gets the resource data size in bytes.

Value: The resource data size.

Specified by:
getDataSize in class ResourceBlock

getMinimalVersion

public int getMinimalVersion()

Gets the minimal required psd version.

Value: The minimal psd version.

Specified by:
getMinimalVersion in class ResourceBlock

saveData

protected void saveData(StreamContainer streamContainer)

Saves the resource block data.

Specified by:
saveData in class ResourceBlock
Parameters:
streamContainer - The stream container to save to.