public static class AudioFileFormat.Type extends Object
An instance of the Type
class represents one of the standard types of audio file. Static instances are provided for the common types.
public static final AudioFileFormat.Type WAVE
Specifies a WAVE file.
public static final AudioFileFormat.Type AU
Specifies an AU file.
public static final AudioFileFormat.Type AIFF
Specifies an AIFF file.
public static final AudioFileFormat.Type AIFC
Specifies an AIFF-C file.
public static final AudioFileFormat.Type SND
Specifies a SND file.
public Type(String name, String extension)
Constructs a file type.
name
- the string that names the file typeextension
- the string that commonly marks the file type without leading dot.public final boolean equals(Object obj)
Finalizes the equals method
equals
in class Object
obj
- the reference object with which to compare.true
if this object is the same as the obj argument; false
otherwise.Object.hashCode()
, HashMap
public final int hashCode()
Finalizes the hashCode method
hashCode
in class Object
Object.equals(java.lang.Object)
, System.identityHashCode(java.lang.Object)
public final String toString()
Provides the file type's name as the String
representation of the file type.
public String getExtension()
Obtains the common file name extension for this file type.
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.