marf.Storage
Class MARFAudioFileFormat.Type

java.lang.Object
  extended by javax.sound.sampled.AudioFileFormat.Type
      extended by marf.Storage.MARFAudioFileFormat.Type
Enclosing class:
MARFAudioFileFormat

public static class MARFAudioFileFormat.Type
extends javax.sound.sampled.AudioFileFormat.Type

In addition to the types defined in AudioFileFormat.Type defines MP3, MIDI, and ULAW formats and their extensions.

See Also:
AudioFileFormat.Type

Field Summary
static MARFAudioFileFormat.Type AIFC
          Specifies an AIFF-C file.
static MARFAudioFileFormat.Type AIFF
          Specifies an AIFF file.
static MARFAudioFileFormat.Type AU
          Specifies an AU file.
static MARFAudioFileFormat.Type CUSTOM
          Specifies custom plug-in file.
static MARFAudioFileFormat.Type MIDI
          Specifies MIDI file.
static MARFAudioFileFormat.Type MP3
          Specifies MP3 file.
static MARFAudioFileFormat.Type SINE
          Specifies SINE file.
static MARFAudioFileFormat.Type SND
          Specifies a SND file.
static MARFAudioFileFormat.Type TEXT
          Specifies text file.
static MARFAudioFileFormat.Type ULAW
          Specifies ULAW file.
static MARFAudioFileFormat.Type WAVE
          Specifies a WAVE file.
 
Constructor Summary
MARFAudioFileFormat.Type(java.lang.String pstrName, java.lang.String pstrExtension)
          Mimics parent's constructor.
 
Method Summary
static MARFAudioFileFormat.Type forFormatCode(int piFormat)
          Given valid format code returns the corresponding Type instance.
 
Methods inherited from class javax.sound.sampled.AudioFileFormat.Type
equals, getExtension, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

WAVE

public static final MARFAudioFileFormat.Type WAVE
Specifies a WAVE file.


AU

public static final MARFAudioFileFormat.Type AU
Specifies an AU file.


AIFF

public static final MARFAudioFileFormat.Type AIFF
Specifies an AIFF file.


AIFC

public static final MARFAudioFileFormat.Type AIFC
Specifies an AIFF-C file.


SND

public static final MARFAudioFileFormat.Type SND
Specifies a SND file.


MP3

public static final MARFAudioFileFormat.Type MP3
Specifies MP3 file.


SINE

public static final MARFAudioFileFormat.Type SINE
Specifies SINE file.


MIDI

public static final MARFAudioFileFormat.Type MIDI
Specifies MIDI file.


ULAW

public static final MARFAudioFileFormat.Type ULAW
Specifies ULAW file.


CUSTOM

public static final MARFAudioFileFormat.Type CUSTOM
Specifies custom plug-in file.

Since:
0.3.0.5

TEXT

public static final MARFAudioFileFormat.Type TEXT
Specifies text file.

Since:
0.3.0.6
Constructor Detail

MARFAudioFileFormat.Type

public MARFAudioFileFormat.Type(java.lang.String pstrName,
                                java.lang.String pstrExtension)
Mimics parent's constructor.

Parameters:
pstrName - format name
pstrExtension - typical file extension
Method Detail

forFormatCode

public static final MARFAudioFileFormat.Type forFormatCode(int piFormat)
                                                    throws InvalidSampleFormatException
Given valid format code returns the corresponding Type instance.

Parameters:
piFormat - the desired format code
Returns:
the Type instance instance
Throws:
InvalidSampleFormatException - if the format code is out of range
Since:
0.3.0.6
See Also:
MARFAudioFileFormat.LOWEST_FORMAT, MARFAudioFileFormat.HIGHEST_FORMAT


SourceForge Logo