javax.sound.sampled

Class AudioFormat.Encoding

public static class AudioFormat.Encoding extends Object

This describes a given audio format encoding.

Since: 1.3

Field Summary
static AudioFormat.EncodingALAW
The ALAW encoding.
static AudioFormat.EncodingPCM_SIGNED
The signed PCM encoding.
static AudioFormat.EncodingPCM_UNSIGNED
The unsigned PCM encoding.
static AudioFormat.EncodingULAW
The ULAW encoding.
Constructor Summary
Encoding(String name)
Create a new encoding descriptor, given its name.
Method Summary
booleanequals(Object o)
inthashCode()
StringtoString()
Return the name of this encoding.

Field Detail

ALAW

public static final AudioFormat.Encoding ALAW
The ALAW encoding.

PCM_SIGNED

public static final AudioFormat.Encoding PCM_SIGNED
The signed PCM encoding.

PCM_UNSIGNED

public static final AudioFormat.Encoding PCM_UNSIGNED
The unsigned PCM encoding.

ULAW

public static final AudioFormat.Encoding ULAW
The ULAW encoding.

Constructor Detail

Encoding

public Encoding(String name)
Create a new encoding descriptor, given its name.

Parameters: name the name

Method Detail

equals

public final boolean equals(Object o)

hashCode

public final int hashCode()

toString

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