LiFdDataSource

Inheritance: java.lang.Object, com.aspose.psd.fileformats.psd.layers.layerresources.linkresources.LinkDataSource

public class LiFdDataSource extends LinkDataSource

Defines the liFD data source class in PSD File that contains information about an embedded file. This is part of PSD File Format Manipulation API that helps to modify Adobe® Photoshop® files

Constructors

ConstructorDescription
LiFdDataSource()Initializes a new instance of the LiFdDataSource class.
LiFdDataSource(int version, UUID uniqueId, String originalFileName, String fileType, String fileCreator)Initializes a new instance of the LiFdDataSource class.

Fields

FieldDescription
DescriptorVersion_internalizedThe descriptor version.
LatestVersion_internalizedThe latest available version of the link data source
UnexpectedLinkDataSourceTypeValue_internalizedThe unexpected link data source type value
ZeroChar_internalizedThe zero character

Methods

MethodDescription
create_internalized(int version, System.Guid guid, String originalFileName, String fileType, String fileCreator)
equals(Object arg0)
getAssetLockedState()Gets or sets a value indicating whether the PSD asset is locked.
getAssetModTime()Gets or sets the asset modified time, for Adobe® Photoshop® \u0421\u0421 Libraries assets.
getChildDocId()Gets or sets the child document identifier in the liFE or liFD data source of the Lnk2 / LnkE Adobe® Photoshop® resource.
getClass()
getCompId()Gets or sets the ID of the currently selected comp for the child document, which will be -1 if none are selected.
getCompInfoKeyName()
getData()Gets or sets the embedded smart object data in PSD file.
getDataLength_Property_internalized()Gets the length of the embedded data.
getDataLength_internalized()Gets the length of the link source data.
getFileCreator()Gets or sets the file creator in the PSD format LnkE / Lnk2 resource.
getFileType()Gets or sets the type of the embedded or external file which Adobe® Photoshop® Lnk2 / LnkE resource contains or links.
getLength()Gets the link data source length in bytes.
getOriginalCompId()Gets the original ID of the currently selected Comp for the child document, which will be -1 if none are selected.
getOriginalFileName()Gets the original file name of the data source in the Adobe® Photoshop® global link resource.
getType()Gets the Adobe® Photoshop® global link data source type that can be one of the following or none: The embedded linked file liFD that corresponds to the PSD Lnk2Resource The external linked file liFE that corresponds to the PSD LnkeResource The linked file alias liFA
getUniqueId()Gets the global unique identifier of the data source in the PSD link resource.
getUniqueId_internalized()
getVersion()Gets the version of the data source in the PSD LnkE / Lnk2 resource.
hasFileOpenDescriptor()Gets or sets a value indicating whether this link data source has the file open descriptor: CompId and OriginalCompId.
hashCode()
isLibraryLink()Gets a value indicating whether this PSD link data source links to the Adobe® Photoshop® \u0421\u0421 Library item.
notify()
notifyAll()
save_internalized(StreamContainer streamContainer)Saves the link data source block data.
setAssetLockedState(boolean value)Gets or sets a value indicating whether the PSD asset is locked.
setAssetModTime(double value)Gets or sets the asset modified time, for Adobe® Photoshop® \u0421\u0421 Libraries assets.
setChildDocId(String value)Gets or sets the child document identifier in the liFE or liFD data source of the Lnk2 / LnkE Adobe® Photoshop® resource.
setCompId(int value)Gets or sets the ID of the currently selected comp for the child document, which will be -1 if none are selected.
setData(byte[] value)Gets or sets the embedded smart object data in PSD file.
setFileCreator(String value)Gets or sets the file creator in the PSD format LnkE / Lnk2 resource.
setFileOpenDescriptor(boolean value)Gets or sets a value indicating whether this link data source has the file open descriptor: CompId and OriginalCompId.
setFileType(String value)Gets or sets the type of the embedded or external file which Adobe® Photoshop® Lnk2 / LnkE resource contains or links.
setLibraryLink(boolean value)Gets a value indicating whether this PSD link data source links to the Adobe® Photoshop® \u0421\u0421 Library item.
setOriginalCompId(int value)Gets the original ID of the currently selected Comp for the child document, which will be -1 if none are selected.
setOriginalFileName(String value)Gets the original file name of the data source in the Adobe® Photoshop® global link resource.
setPropertyValueByTypeStructure_internalized(OSTypeStructure structure)Sets the property value by type structure.
setUniqueId(UUID uuid)Gets the global unique identifier of the data source in the PSD link resource.
setUniqueId_internalized(System.Guid value)
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

LiFdDataSource()

public LiFdDataSource()

Initializes a new instance of the LiFdDataSource class.

LiFdDataSource(int version, UUID uniqueId, String originalFileName, String fileType, String fileCreator)

public LiFdDataSource(int version, UUID uniqueId, String originalFileName, String fileType, String fileCreator)

Initializes a new instance of the LiFdDataSource class.

Parameters:

ParameterTypeDescription
versionintThe version.
uniqueIdjava.util.UUIDThe unique identifier.
originalFileNamejava.lang.StringName of the original file.
fileTypejava.lang.StringType of the file.
fileCreatorjava.lang.StringThe file creator.

DescriptorVersion_internalized

public static final int DescriptorVersion_internalized

The descriptor version.

LatestVersion_internalized

public static final int LatestVersion_internalized

The latest available version of the link data source

UnexpectedLinkDataSourceTypeValue_internalized

public static final String UnexpectedLinkDataSourceTypeValue_internalized

The unexpected link data source type value

ZeroChar_internalized

public static final char ZeroChar_internalized

The zero character

create_internalized(int version, System.Guid guid, String originalFileName, String fileType, String fileCreator)

public static LiFdDataSource create_internalized(int version, System.Guid guid, String originalFileName, String fileType, String fileCreator)

Parameters:

ParameterTypeDescription
versionint
guidcom.aspose.ms.System.Guid
originalFileNamejava.lang.String
fileTypejava.lang.String
fileCreatorjava.lang.String

Returns: LiFdDataSource

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAssetLockedState()

public final boolean getAssetLockedState()

Gets or sets a value indicating whether the PSD asset is locked. The asset locked state, for Adobe® Photoshop® \u0421\u0421 Libraries assets.

Returns: boolean

getAssetModTime()

public final double getAssetModTime()

Gets or sets the asset modified time, for Adobe® Photoshop® \u0421\u0421 Libraries assets.

Returns: double

getChildDocId()

public final String getChildDocId()

Gets or sets the child document identifier in the liFE or liFD data source of the Lnk2 / LnkE Adobe® Photoshop® resource.

Returns: java.lang.String

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCompId()

public final int getCompId()

Gets or sets the ID of the currently selected comp for the child document, which will be -1 if none are selected. Comps are compositions of a page layout which designers can create. Using layer comps, you can create, manage, and view multiple versions of a layout in a single Adobe® Photoshop® file. A layer comp is a snapshot of a state of the Layers panel. Layer comps save three types of layer options but this property gets the Layer Comp selection identifier for Smart Objects. Layer comps in Smart Objects

Returns: int

getCompInfoKeyName()

public static String getCompInfoKeyName()

Returns: java.lang.String

getData()

public final byte[] getData()

Gets or sets the embedded smart object data in PSD file.

Value: The the embedded smart object data.

Returns: byte[]

getDataLength_Property_internalized()

public int getDataLength_Property_internalized()

Gets the length of the embedded data.

Value: The length of the embedded data.

Returns: int

getDataLength_internalized()

public final long getDataLength_internalized()

Gets the length of the link source data.

Returns: long - The source data length.

getFileCreator()

public final String getFileCreator()

Gets or sets the file creator in the PSD format LnkE / Lnk2 resource.

Returns: java.lang.String

getFileType()

public final String getFileType()

Gets or sets the type of the embedded or external file which Adobe® Photoshop® Lnk2 / LnkE resource contains or links.

Returns: java.lang.String

getLength()

public final long getLength()

Gets the link data source length in bytes.

Returns: long

getOriginalCompId()

public final int getOriginalCompId()

Gets the original ID of the currently selected Comp for the child document, which will be -1 if none are selected. This property gets the original layer Comp selection identifier for Smart Objects. Layer comps in Smart Objects

Returns: int

getOriginalFileName()

public final String getOriginalFileName()

Gets the original file name of the data source in the Adobe® Photoshop® global link resource.

Returns: java.lang.String

getType()

public final int getType()

Gets the Adobe® Photoshop® global link data source type that can be one of the following or none: The embedded linked file liFD that corresponds to the PSD Lnk2Resource The external linked file liFE that corresponds to the PSD LnkeResource The linked file alias liFA

Value: The PSD link data source type.

Returns: int

getUniqueId()

public final UUID getUniqueId()

Gets the global unique identifier of the data source in the PSD link resource.

Returns: java.util.UUID

getUniqueId_internalized()

public final System.Guid getUniqueId_internalized()

Returns: com.aspose.ms.System.Guid

getVersion()

public final int getVersion()

Gets the version of the data source in the PSD LnkE / Lnk2 resource.

Returns: int

hasFileOpenDescriptor()

public final boolean hasFileOpenDescriptor()

Gets or sets a value indicating whether this link data source has the file open descriptor: CompId and OriginalCompId.

Value: true if this instance has file open descriptor; otherwise, false .

Returns: boolean

hashCode()

public native int hashCode()

Returns: int

public final boolean isLibraryLink()

Gets a value indicating whether this PSD link data source links to the Adobe® Photoshop® \u0421\u0421 Library item.

Returns: boolean

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

save_internalized(StreamContainer streamContainer)

public final void save_internalized(StreamContainer streamContainer)

Saves the link data source block data.

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream container to save to.

setAssetLockedState(boolean value)

public final void setAssetLockedState(boolean value)

Gets or sets a value indicating whether the PSD asset is locked. The asset locked state, for Adobe® Photoshop® \u0421\u0421 Libraries assets.

Parameters:

ParameterTypeDescription
valueboolean

setAssetModTime(double value)

public final void setAssetModTime(double value)

Gets or sets the asset modified time, for Adobe® Photoshop® \u0421\u0421 Libraries assets.

Parameters:

ParameterTypeDescription
valuedouble

setChildDocId(String value)

public final void setChildDocId(String value)

Gets or sets the child document identifier in the liFE or liFD data source of the Lnk2 / LnkE Adobe® Photoshop® resource.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setCompId(int value)

public final void setCompId(int value)

Gets or sets the ID of the currently selected comp for the child document, which will be -1 if none are selected. Comps are compositions of a page layout which designers can create. Using layer comps, you can create, manage, and view multiple versions of a layout in a single Adobe® Photoshop® file. A layer comp is a snapshot of a state of the Layers panel. Layer comps save three types of layer options but this property gets the Layer Comp selection identifier for Smart Objects. Layer comps in Smart Objects

Parameters:

ParameterTypeDescription
valueint

setData(byte[] value)

public final void setData(byte[] value)

Gets or sets the embedded smart object data in PSD file.

Value: The the embedded smart object data.

Parameters:

ParameterTypeDescription
valuebyte[]

setFileCreator(String value)

public final void setFileCreator(String value)

Gets or sets the file creator in the PSD format LnkE / Lnk2 resource.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setFileOpenDescriptor(boolean value)

public final void setFileOpenDescriptor(boolean value)

Gets or sets a value indicating whether this link data source has the file open descriptor: CompId and OriginalCompId.

Value: true if this instance has file open descriptor; otherwise, false .

Parameters:

ParameterTypeDescription
valueboolean

setFileType(String value)

public final void setFileType(String value)

Gets or sets the type of the embedded or external file which Adobe® Photoshop® Lnk2 / LnkE resource contains or links.

Parameters:

ParameterTypeDescription
valuejava.lang.String
public final void setLibraryLink(boolean value)

Gets a value indicating whether this PSD link data source links to the Adobe® Photoshop® \u0421\u0421 Library item.

Parameters:

ParameterTypeDescription
valueboolean

setOriginalCompId(int value)

public final void setOriginalCompId(int value)

Gets the original ID of the currently selected Comp for the child document, which will be -1 if none are selected. This property gets the original layer Comp selection identifier for Smart Objects. Layer comps in Smart Objects

Parameters:

ParameterTypeDescription
valueint

setOriginalFileName(String value)

public final void setOriginalFileName(String value)

Gets the original file name of the data source in the Adobe® Photoshop® global link resource.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setPropertyValueByTypeStructure_internalized(OSTypeStructure structure)

public final void setPropertyValueByTypeStructure_internalized(OSTypeStructure structure)

Sets the property value by type structure.

Parameters:

ParameterTypeDescription
structureOSTypeStructureThe structure.

setUniqueId(UUID uuid)

public final void setUniqueId(UUID uuid)

Gets the global unique identifier of the data source in the PSD link resource.

Parameters:

ParameterTypeDescription
uuidjava.util.UUID

setUniqueId_internalized(System.Guid value)

public final void setUniqueId_internalized(System.Guid value)

Parameters:

ParameterTypeDescription
valuecom.aspose.ms.System.Guid

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int