Class LinkResource

  • Direct Known Subclasses:
    Lnk2Resource, LnkeResource

    public abstract class LinkResource
    extends LayerResource

    Defines the LinkResource class that contains information about linked or embedded files in the PSD format image. The link resource may contain several LinkDataSource instances which can be accessed by indexers in any derived class.

    See Also:
    • Field Detail

      • LengthOfResourceLengthField

        public static final int LengthOfResourceLengthField

        The length of total resource length field.

        See Also:
        Constant Field Values
      • LengthOSourceLengthField

        public static final int LengthOSourceLengthField

        The length of data source length field.

        See Also:
        Constant Field Values
    • Method Detail

      • isEmpty

        public final boolean isEmpty()

        Gets a value indicating whether this link resource instance is empty.

        Value: true if this link resource is empty; otherwise, false.
      • getSignature

        public int getSignature()

        Gets the PSD global link resource signature.

        Specified by:
        getSignature in class LayerResource
      • getLength

        public int getLength()

        Gets the PSD global link resource length in bytes.

        Specified by:
        getLength in class LayerResource
      • getDataSourceCount

        public final int getDataSourceCount()

        Gets the count of link data sources which can be accessed by the indexer.

        Value: The data source count.
      • save

        public void save(StreamContainer streamContainer,
                         int psdVersion)

        Saves the resource block data.

        Specified by:
        save in class LayerResource
        streamContainer - The stream container to save to.
        psdVersion - The PSD version.