Class GifFormat

  • All Implemented Interfaces:, IXmp

    public final class GifFormat
    extends ImageFormat
    implements IXmp

    Represents GIF (Graphics Interchange Format) format.

    • Constructor Detail

      • GifFormat

        public GifFormat(String fileName)

        Initializes a new instance of the GifFormat class.

        fileName - Absolute path to the file.
      • GifFormat

        public GifFormat(InputStream input)

        Initializes a new instance of the GifFormat class.

        input - File stream.
    • Method Detail

      • getType

        public int getType()

        Gets document type.

        Value: Document type.
        Specified by:
        getType in class FormatBase
      • isSupportedXmp

        public final boolean isSupportedXmp()

        Gets true if file allows to read/write XMP data.

        Value: true if this GIF is supported XMP; otherwise, false.
      • getVersion

        public final String getVersion()

        Gets GIF version. XMP is supported starting from 89a version.

        Value: The version.
      • hasXmp

        public final boolean hasXmp()

        Gets true if file contains XMP metadata.

        Value: true if file has XMP; otherwise, false.
        Specified by:
        hasXmp in interface IXmp
      • getXmpValues

        public final XmpEditableCollection getXmpValues()

        Gets XmpEditableCollection. Provides access for all XMP properties in edit mode.

        Value: XMP values.
        Specified by:
        getXmpValues in interface IXmp
      • getXmpData

        public final XmpPacketWrapper getXmpData()

        Returns the XMP packet.

        Specified by:
        getXmpData in interface IXmp
        XmpPacketWrapper if XMP data is presented, otherwise null.
      • getXmpProperties

        public final XmpProperties getXmpProperties()

        Returns all XMP properties presented in GifFormat.

        Specified by:
        getXmpProperties in interface IXmp
        XmpProperties if XMP data is presented; otherwise null.
      • setXmpData

        public final boolean setXmpData(XmpPacketWrapper package_)

        Updates XMP packet.

        Specified by:
        setXmpData in interface IXmp
        package - XMP packet wrapper.
        true if the XMP is successfully updated; otherwise, false.
        ArgumentNullException - XMP wrapper could not be null.
      • removeXmpData

        public final void removeXmpData()

        Removes all existing XMP data.

        This feature is not available in trial mode.

        Specified by:
        removeXmpData in interface IXmp