com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class GifFormat

    • Constructor Detail

      • GifFormat

        public GifFormat(String fileName)

        Initializes a new instance of the GifFormat class.

        Parameters:
        fileName - A string that contains the full name of the file from which to create a GifFormat instance.
      • GifFormat

        public GifFormat(InputStream input)

        Initializes a new instance of the GifFormat class.

        Parameters:
        input - A stream that contains the data for this GifFormat.
    • Method Detail

      • getType

        public int getType()

        Gets the type of the loaded file.

        Specified by:
        getType in class FormatBase
        Returns:
        The type of the loaded file.
      • isSupportedXmp

        public final boolean isSupportedXmp()

        Gets a value indicating whether the XMP metadata is supported for this image.

        Returns:
        true if the XMP metadata is supported for this image; otherwise, false.
      • getVersion

        public final String getVersion()

        Gets the GIF version. The XMP metadata is supported starting from version 89a.

        Returns:
        The version.
      • hasXmp

        public final boolean hasXmp()

        Gets a value indicating whether the file contains XMP metadata.

        Specified by:
        hasXmp in interface IXmp
        Returns:
        true if the file contains an XMP metadata package; otherwise, false.
      • getXmpValues

        public final XmpEditableCollection getXmpValues()

        Gets a collection containing the XMP metadata properties. Provides access to all XMP properties in edit mode.

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

        public final XmpPacketWrapper getXmpData()

        Returns the XMP packet.

        Specified by:
        getXmpData in interface IXmp
        Returns:
        The XmpPacketWrapper if the file contains an XMP metadata package; otherwise, null.
      • getXmpProperties

        public final XmpProperties getXmpProperties()

        Returns all XMP properties presented in a specific format.

        Specified by:
        getXmpProperties in interface IXmp
        Returns:
        The XmpProperties if the file contains an XMP metadata package; otherwise, null.
      • setXmpData

        public final boolean setXmpData(XmpPacketWrapper package_)

        Updates the XMP packet.

        Specified by:
        setXmpData in interface IXmp
        Parameters:
        package - An XMP packet wrapper.
        Returns:
        true if the XMP package is successfully updated; otherwise, false.
      • removeXmpData

        public final void removeXmpData()

        Removes the XMP metadata.


        This feature is not available in trial mode.

        Specified by:
        removeXmpData in interface IXmp
      • getDublinCore

        public final DublinCoreMetadata getDublinCore()

        Retrieves the Dublin Core metadata.

        Specified by:
        getDublinCore in interface IDublinCore
        Returns:
        The DublinCoreMetadata if the appropriate package is found; otherwise, null.