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 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​(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 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​(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 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​(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
      • setFormat

        public void setFormat​(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 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​(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 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​(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 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​(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 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​(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 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​(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