Class FileMetadata

    • Constructor Detail

      • FileMetadata

        public FileMetadata()
        Creates a new FileMetadata.
        Since:
        6.1.0
      • FileMetadata

        public FileMetadata​(FileMacrotype macroType)
        Creates a new FileMetadata.
        Since:
        7.0.0
    • Method Detail

      • getHeight

        public java.lang.Integer getHeight()
        Returns the height metadata.
        Specified by:
        getHeight in interface IFileMetadata
        Specified by:
        getHeight in interface IFileMetadata
        Returns:
        the height metadata, or null if it is unknown or not applicable.
        Since:
        6.1.0
      • setHeight

        public void setHeight​(java.lang.Integer height)
        Sets the height metadata.
        Parameters:
        height - the height, or null if it is unknown or not applicable.
        Since:
        6.1.0
      • getWidth

        public java.lang.Integer getWidth()
        Returns the width metadata.
        Specified by:
        getWidth in interface IFileMetadata
        Specified by:
        getWidth in interface IFileMetadata
        Returns:
        the width metadata, or null if it is unknown or not applicable.
        Since:
        6.1.0
      • setWidth

        public void setWidth​(java.lang.Integer width)
        Sets the width metadata.
        Parameters:
        width - the width, or null if it is unknown or not applicable.
        Since:
        6.1.0
      • getDuration

        public java.lang.Long getDuration()
        Description copied from interface: IFileMetadata
        Returns the duration metadata, in milliseconds.
        Specified by:
        getDuration in interface IFileMetadata
        Specified by:
        getDuration in interface IFileMetadata
        Returns:
        the duration in milliseconds, or null if it is unknown or not applicable.
      • setDuration

        public void setDuration​(java.lang.Long duration)
        Sets the duration metadata, in milliseconds.
        Parameters:
        duration - the duration in milliseconds, or null if it is unknown or not applicable.
        Since:
        6.1.0
      • getFormat

        public java.lang.String getFormat()
        Description copied from interface: IFileMetadata
        Returns the format metadata.
        Specified by:
        getFormat in interface IFileMetadata
        Specified by:
        getFormat in interface IFileMetadata
        Returns:
        the format, or null if it is unknown or not applicable.
      • setFormat

        public void setFormat​(java.lang.String format)
        Sets the format metadata.
        Parameters:
        format - the format, or null if it is unknown or not applicable.
        Since:
        6.1.0
      • getColorDepth

        public java.lang.Integer getColorDepth()
        Description copied from interface: IFileMetadata
        Returns the color depth metadata.
        Specified by:
        getColorDepth in interface IFileMetadata
        Returns:
        the color depth, in bits per pixel, or null if it is unknown or not applicable.
      • setColorDepth

        public void setColorDepth​(java.lang.Integer colorDepth)
        Sets the color depth metadata.
        Parameters:
        colorDepth - the color depth, in bits per pixel, or null if it is unknown or not applicable.
        Since:
        7.0.0
      • getVideoFrameRate

        public java.lang.Double getVideoFrameRate()
        Description copied from interface: IFileMetadata
        Returns the video frame rate metadata.
        Specified by:
        getVideoFrameRate in interface IFileMetadata
        Returns:
        the video frame rate in frames per second, or null if it is unknown or not applicable.
      • setVideoFrameRate

        public void setVideoFrameRate​(java.lang.Double videoFrameRate)
        Sets the video frame rate metadata.
        Parameters:
        the - video frame rate in frames per second, in bits per pixel, or null if it is unknown or not applicable.
        Since:
        7.0.0
      • getAudioBitRate

        public java.lang.Double getAudioBitRate()
        Description copied from interface: IFileMetadata
        Returns the audio bit rate metadata.
        Specified by:
        getAudioBitRate in interface IFileMetadata
        Returns:
        the audio bit rate in kilobits per second, or null if it is unknown or not applicable.
      • setAudioBitRate

        public void setAudioBitRate​(java.lang.Double audioBitRate)
        Sets the audio bit rate metadata.
        Parameters:
        the - audio bit rate in kilobits per second, or null if it is unknown or not applicable.
        Since:
        7.0.0
      • getAudioSamplingRate

        public java.lang.Integer getAudioSamplingRate()
        Description copied from interface: IFileMetadata
        Returns the audio sampling rate metadata.
        Specified by:
        getAudioSamplingRate in interface IFileMetadata
        Returns:
        the audio sampling rate in Hz, or null if it is unknown or not applicable.
      • setAudioSamplingRate

        public void setAudioSamplingRate​(java.lang.Integer audioSamplingRate)
        Sets the audio sampling rate metadata.
        Parameters:
        the - audio sampling rate in Hz, or null if it is unknown or not applicable.
        Since:
        7.0.0
      • getAudioChannels

        public java.lang.Integer getAudioChannels()
        Description copied from interface: IFileMetadata
        Returns the number of audio channels metadata.
        Specified by:
        getAudioChannels in interface IFileMetadata
        Returns:
        the number of audio channels, or null if it is unknown or not applicable.
      • setAudioChannels

        public void setAudioChannels​(java.lang.Integer audioChannels)
        Sets the number of audio channels metadata.
        Parameters:
        the - number of audio channels, or null if it is unknown or not applicable.
        Since:
        7.0.0