javax.sound.sampled

Class AudioFileFormat.Type

public static class AudioFileFormat.Type extends Object

An instance of this type describes a standard audio file format.

Since: 1.3

Field Summary
static AudioFileFormat.TypeAIFC
The AIFC format.
static AudioFileFormat.TypeAIFF
The AIFF format.
static AudioFileFormat.TypeAU
The AU format.
static AudioFileFormat.TypeSND
The SND format.
static AudioFileFormat.TypeWAVE
The WAVE format.
Constructor Summary
Type(String name, String extension)
Create a new Type given its name and file extension.
Method Summary
booleanequals(Object o)
StringgetExtension()
Return the extension associated with this Type.
inthashCode()
StringtoString()
Return the name of this Type.

Field Detail

AIFC

public static final AudioFileFormat.Type AIFC
The AIFC format.

AIFF

public static final AudioFileFormat.Type AIFF
The AIFF format.

AU

public static final AudioFileFormat.Type AU
The AU format.

SND

public static final AudioFileFormat.Type SND
The SND format.

WAVE

public static final AudioFileFormat.Type WAVE
The WAVE format.

Constructor Detail

Type

public Type(String name, String extension)
Create a new Type given its name and file extension. The file extension does not include the ".".

Parameters: name the type's name extension the file extension

Method Detail

equals

public final boolean equals(Object o)

getExtension

public String getExtension()
Return the extension associated with this Type.

hashCode

public final int hashCode()

toString

public final String toString()
Return the name of this Type.