Enum Class FileFormat

java.lang.Object
java.lang.Enum<FileFormat>
com.jackmeng.halcyoninae.tailwind.FileFormat
All Implemented Interfaces:
Serializable, Comparable<FileFormat>, Constable

public enum FileFormat extends Enum<FileFormat>
Represents a file format for audio files.
Since:
1.0.0
Version:
2.0.0
Author:
Ralph Niemitz/RalleYTN(ralph.niemitz@gmx.de)
  • Enum Constant Details

    • WAV

      public static final FileFormat WAV
      Wavesound(.wav)
      Since:
      1.0.0
    • MP3

      public static final FileFormat MP3
      MPEG-1 Audio Layer III or MPEG-2 Audio Layer III(.mp3)
      Since:
      1.0.0
    • OGG

      public static final FileFormat OGG
      Ogg Vorbis(.ogg, .oga)
      Since:
      1.0.0
    • FLAC

      public static final FileFormat FLAC
    • AIFF

      public static final FileFormat AIFF
      Audio Interchange File Format(.aiff)
      Since:
      1.0.0
    • AU

      public static final FileFormat AU
      Au Sound File(.au)
      Since:
      1.0.0
    • AIFC

      public static final FileFormat AIFC
      Audio Interchange File Format(.aifc)
      WARNING: The format is not supported on all systems!
      Since:
      1.1.0
    • SND

      public static final FileFormat SND
      Audio Interchange File Format(.snd)
      WARNING: The format is not supported on all systems!
      Since:
      1.1.0
  • Field Details

    • associatedFileExtensions

      private final List<String> associatedFileExtensions
    • writingSupported

      private final boolean writingSupported
    • type

      private final AudioFileFormat.Type type
  • Constructor Details

  • Method Details

    • values

      public static FileFormat[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FileFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getFormatByName

      public static FileFormat getFormatByName(String name)
      Parameters:
      name - name of the file
      Returns:
      the FileFormat instance which fits or null if no file format could be found for that name.
      Since:
      1.0.0
    • getType

      public AudioFileFormat.Type getType()
      Returns:
      the AudioFileFormat.Type equivalent to this FileFormat instance
      Since:
      1.1.0
    • isWritingSupported

      public boolean isWritingSupported()
      Returns:
      true if writing for the file format is supported, else false
      Since:
      1.0.0
    • getAssociatedExtensions

      public List<String> getAssociatedExtensions()
      Returns:
      a list with all associated file extensions
      Since:
      1.0.0