com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class ImageResourceBlock

  • All Implemented Interfaces:
    IMetadataProperty


    public final class ImageResourceBlock
    extends Object
    implements IMetadataProperty

    Represents Photoshop Image Resource block. <br></br> Image resource blocks are the basic building unit of several file formats, including Photoshop's native file format, JPEG, and TIFF. Image resources are used to store non-pixel data associated with images, such as pen tool paths.

    • Method Detail

      • getId

        public final long getId()

        Gets the unique identifier for the resource.

        Returns:
        The identifier.
      • getDefinedId

        public final int getDefinedId()

        Gets the defined identifier.

        Returns:
        The defined identifier.
      • setName

        public final void setName(String value)

        Sets property name.

        Specified by:
        setName in interface IMetadataProperty
        Parameters:
        value - Property name.
      • getPropertyName

        public final String getPropertyName()

        Gets property name. Pascal string, padded to make the size even (a null name consists of two bytes of 0).

        Returns:
        Property name.
      • getDataSize

        public final int getDataSize()

        Gets the size of the data.

        Returns:
        Data size.
      • getData

        public final byte[] getData()

        Gets the resource data. It is padded to make the size even.

        Returns:
        The data.
      • getFormattedValue

        public final String getFormattedValue()

        Gets the formatted value.

        Specified by:
        getFormattedValue in interface IMetadataProperty
        Returns:
        String value contained metadata property value in readable format.
      • toString

        public String toString()

        Returns a System.String that represents this instance.

        Overrides:
        toString in class Object
        Returns:
        A System.String that represents this instance.