com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class FlvFormat

    • Constructor Detail

      • FlvFormat

        public FlvFormat(String fileName)

        Initializes a new instance of the FlvFormat class.

        Parameters:
        fileName - Absolute path to the file.
      • FlvFormat

        public FlvFormat(InputStream input)

        Initializes a new instance of the FlvFormat class.

        Parameters:
        input - File stream.
    • Method Detail

      • getType

        public int getType()

        Gets the document type.

        Specified by:
        getType in class FormatBase
        Returns:
        The document type.
      • getHeader

        public final FlvHeader getHeader()

        Gets the metadata contained in the FLV header.

        Returns:
        The metadata contained in the FLV header.
      • 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 XMP metadata; otherwise, false.
      • getXmpValues

        public final XmpEditableCollection getXmpValues()

        Gets an instance of XmpEditableCollection which provides access to all XMP properties in edit mode.

        Specified by:
        getXmpValues in interface IXmp
        Returns:
        An instance of XmpEditableCollection.
      • getXmpData

        public final XmpPacketWrapper getXmpData()

        Returns the XMP packet.

        Specified by:
        getXmpData in interface IXmp
        Returns:
        An instance of the XmpPacketWrapper class if XMP metadata is present, otherwise, null.
      • getXmpProperties

        public final XmpProperties getXmpProperties()

        Returns all XMP properties presented in the loaded video.

        Specified by:
        getXmpProperties in interface IXmp
        Returns:
        An instance of the XmpProperties class if XMP data is present; otherwise, null.
      • setXmpData

        public final boolean setXmpData(XmpPacketWrapper package_)

        Updates the XMP packet.

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

        public final void removeXmpData()

        Removes the existing XMP metadata package.


        This feature is not available in trial mode.

        Specified by:
        removeXmpData in interface IXmp
      • getDublinCore

        public final DublinCoreMetadata getDublinCore()

        Gets Dublin Core metadata.

        Specified by:
        getDublinCore in interface IDublinCore
        Returns:
        An instance of the DublinCoreMetadata class if Dublin Core metadata is present; otherwise null.


        This feature is not supported in trial mode.

      • cleanMetadata

        public void cleanMetadata()

        Removes all metadata presented in the file.


        This feature is not available in trial mode.

        Overrides:
        cleanMetadata in class FormatBase