com.groupdocs.editor.htmlcss.resources.audio

Class AudioType

    • Constructor Detail

      • AudioType

        public AudioType()
    • Method Detail

      • equals

        public final boolean equals(AudioType other)

        Determines whether this instance is equal with specified "AudioType" instance

        Parameters:
        other - Other AudioType instance to check with this
        Returns:
        True if are equal, false if are unequal
      • equals

        public boolean equals(Object obj)

        Determines whether this instance is equal with specified uncasted object, which presumably is another "AudioType" instance

        Overrides:
        equals in class Object
        Parameters:
        obj - Other instance presumably of AudioType struct, that was boxed to System.Object
        Returns:
        True if are equal, false if are unequal
      • getFileExtension

        public final String getFileExtension()

        Filename extension (without dot character) for this audio format

        Specified by:
        getFileExtension in interface IResourceType
      • getMp3

        public static AudioType getMp3()

        Represents a MPEG-1 Audio Layer III audio format

      • getUndefined

        public static AudioType getUndefined()

        Special value, which marks undefined, unknown or unsupported audio format

      • hashCode

        public int hashCode()

        Returns a hash-code, which is a constant number for this specific value type

        Overrides:
        hashCode in class Object
        Returns:
        4-byte signed integer, 0 for Undefined value
      • op_Equality

        public static boolean op_Equality(AudioType first,
                                          AudioType second)

        Checks whether two "AudioType" values are equal

        Parameters:
        first - First AudioType to check
        second - Second AudioType to check
        Returns:
        True if are equal, false if are unequal
      • op_Inequality

        public static boolean op_Inequality(AudioType first,
                                            AudioType second)

        Checks whether two "AudioType" values are not equal

        Parameters:
        first - First AudioType to check
        second - Second AudioType to check
        Returns:
        True if are equal, false if are unequal
      • parseFromFilenameWithExtension

        public static AudioType parseFromFilenameWithExtension(String filename)

        Returns AudioType value, which is equivalent of filename extension, which is extracted from specified filename

        Parameters:
        filename - Arbitrary filename, can be a relative or full path
        Returns:
        AudioType value. Returns AudioType.Undefined, if extension cannot be recognized.