javax.sound.sampled
Class AudioFileFormat.Type

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.sound.sampled.AudioFileFormat.Type
Enclosing class:
AudioFileFormat sample code for javax.sound.sampled.AudioFileFormat definition code for javax.sound.sampled.AudioFileFormat

public static class AudioFileFormat.Type
extends Object sample code for java.lang.Object definition code for java.lang.Object

An instance of the Type class represents one of the standard types of audio file. Static instances are provided for the common types.


Field Summary
static AudioFileFormat.Type sample code for javax.sound.sampled.AudioFileFormat.Type definition code for javax.sound.sampled.AudioFileFormat.Type AIFC sample code for javax.sound.sampled.AudioFileFormat.Type.AIFC definition code for javax.sound.sampled.AudioFileFormat.Type.AIFC
          Specifies an AIFF-C file.
static AudioFileFormat.Type sample code for javax.sound.sampled.AudioFileFormat.Type definition code for javax.sound.sampled.AudioFileFormat.Type AIFF sample code for javax.sound.sampled.AudioFileFormat.Type.AIFF definition code for javax.sound.sampled.AudioFileFormat.Type.AIFF
          Specifies an AIFF file.
static AudioFileFormat.Type sample code for javax.sound.sampled.AudioFileFormat.Type definition code for javax.sound.sampled.AudioFileFormat.Type AU sample code for javax.sound.sampled.AudioFileFormat.Type.AU definition code for javax.sound.sampled.AudioFileFormat.Type.AU
          Specifies an AU file.
static AudioFileFormat.Type sample code for javax.sound.sampled.AudioFileFormat.Type definition code for javax.sound.sampled.AudioFileFormat.Type SND sample code for javax.sound.sampled.AudioFileFormat.Type.SND definition code for javax.sound.sampled.AudioFileFormat.Type.SND
          Specifies a SND file.
static AudioFileFormat.Type sample code for javax.sound.sampled.AudioFileFormat.Type definition code for javax.sound.sampled.AudioFileFormat.Type WAVE sample code for javax.sound.sampled.AudioFileFormat.Type.WAVE definition code for javax.sound.sampled.AudioFileFormat.Type.WAVE
          Specifies a WAVE file.
 
Constructor Summary
AudioFileFormat.Type sample code for javax.sound.sampled.AudioFileFormat.Type.AudioFileFormat.Type(java.lang.String, java.lang.String) definition code for javax.sound.sampled.AudioFileFormat.Type.AudioFileFormat.Type(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name, String sample code for java.lang.String definition code for java.lang.String  extension)
          Constructs a file type.
 
Method Summary
 boolean equals sample code for javax.sound.sampled.AudioFileFormat.Type.equals(java.lang.Object) definition code for javax.sound.sampled.AudioFileFormat.Type.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  obj)
          Finalizes the equals method
 String sample code for java.lang.String definition code for java.lang.String getExtension sample code for javax.sound.sampled.AudioFileFormat.Type.getExtension() definition code for javax.sound.sampled.AudioFileFormat.Type.getExtension() ()
          Obtains the common file name extension for this file type.
 int hashCode sample code for javax.sound.sampled.AudioFileFormat.Type.hashCode() definition code for javax.sound.sampled.AudioFileFormat.Type.hashCode() ()
          Finalizes the hashCode method
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.sound.sampled.AudioFileFormat.Type.toString() definition code for javax.sound.sampled.AudioFileFormat.Type.toString() ()
          Provides the file type's name as the String representation of the file type.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

WAVE sample code for javax.sound.sampled.AudioFileFormat.Type.WAVE

public static final AudioFileFormat.Type sample code for javax.sound.sampled.AudioFileFormat.Type definition code for javax.sound.sampled.AudioFileFormat.Type  WAVE
Specifies a WAVE file.


AU sample code for javax.sound.sampled.AudioFileFormat.Type.AU

public static final AudioFileFormat.Type sample code for javax.sound.sampled.AudioFileFormat.Type definition code for javax.sound.sampled.AudioFileFormat.Type  AU
Specifies an AU file.


AIFF sample code for javax.sound.sampled.AudioFileFormat.Type.AIFF

public static final AudioFileFormat.Type sample code for javax.sound.sampled.AudioFileFormat.Type definition code for javax.sound.sampled.AudioFileFormat.Type  AIFF
Specifies an AIFF file.


AIFC sample code for javax.sound.sampled.AudioFileFormat.Type.AIFC

public static final AudioFileFormat.Type sample code for javax.sound.sampled.AudioFileFormat.Type definition code for javax.sound.sampled.AudioFileFormat.Type  AIFC
Specifies an AIFF-C file.


SND sample code for javax.sound.sampled.AudioFileFormat.Type.SND

public static final AudioFileFormat.Type sample code for javax.sound.sampled.AudioFileFormat.Type definition code for javax.sound.sampled.AudioFileFormat.Type  SND
Specifies a SND file.

Constructor Detail

AudioFileFormat.Type sample code for javax.sound.sampled.AudioFileFormat.Type(java.lang.String, java.lang.String) definition code for javax.sound.sampled.AudioFileFormat.Type(java.lang.String, java.lang.String)

public AudioFileFormat.Type(String sample code for java.lang.String definition code for java.lang.String  name,
                            String sample code for java.lang.String definition code for java.lang.String  extension)
Constructs a file type.

Parameters:
name - the string that names the file type
extension - the string that commonly marks the file type without leading dot.
Method Detail

equals sample code for javax.sound.sampled.AudioFileFormat.Type.equals(java.lang.Object) definition code for javax.sound.sampled.AudioFileFormat.Type.equals(java.lang.Object)

public final boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  obj)
Finalizes the equals method

Overrides:
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) in class Object sample code for java.lang.Object definition code for java.lang.Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

hashCode sample code for javax.sound.sampled.AudioFileFormat.Type.hashCode() definition code for javax.sound.sampled.AudioFileFormat.Type.hashCode()

public final int hashCode()
Finalizes the hashCode method

Overrides:
hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a hash code value for this object.
See Also:
Object.equals(java.lang.Object) sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

toString sample code for javax.sound.sampled.AudioFileFormat.Type.toString() definition code for javax.sound.sampled.AudioFileFormat.Type.toString()

public final String sample code for java.lang.String definition code for java.lang.String  toString()
Provides the file type's name as the String representation of the file type.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
the file type's name

getExtension sample code for javax.sound.sampled.AudioFileFormat.Type.getExtension() definition code for javax.sound.sampled.AudioFileFormat.Type.getExtension()

public String sample code for java.lang.String definition code for java.lang.String  getExtension()
Obtains the common file name extension for this file type.

Returns:
file type extension