Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.util
Class SoundFileUtils

java.lang.Object
  extended by net.java.sip.communicator.util.SoundFileUtils

public class SoundFileUtils
extends Object

Defines the different permit extension file.

Author:
Alexandre Maillard, Dmitri Melnikov

Field Summary
static String aif
           
static String au
           
static String DEFAULT_CALL_RECORDING_FORMAT
          The file extension and the format of call recording to be used by default.
static String gsm
           
static String mid
           
static String mod
           
static String mp2
           
static String mp3
           
static String ogg
           
static String ram
           
static String wav
          Different extension of a sound file
static String wma
           
 
Constructor Summary
SoundFileUtils()
           
 
Method Summary
static String getExtension(File f)
          Gets the file extension.
static boolean isSoundFile(File f)
          Checks whether this file is a sound file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wav

public static final String wav
Different extension of a sound file

See Also:
Constant Field Values

mid

public static final String mid
See Also:
Constant Field Values

mp2

public static final String mp2
See Also:
Constant Field Values

mp3

public static final String mp3
See Also:
Constant Field Values

mod

public static final String mod
See Also:
Constant Field Values

ram

public static final String ram
See Also:
Constant Field Values

wma

public static final String wma
See Also:
Constant Field Values

ogg

public static final String ogg
See Also:
Constant Field Values

gsm

public static final String gsm
See Also:
Constant Field Values

aif

public static final String aif
See Also:
Constant Field Values

au

public static final String au
See Also:
Constant Field Values

DEFAULT_CALL_RECORDING_FORMAT

public static final String DEFAULT_CALL_RECORDING_FORMAT
The file extension and the format of call recording to be used by default.

See Also:
Constant Field Values
Constructor Detail

SoundFileUtils

public SoundFileUtils()
Method Detail

isSoundFile

public static boolean isSoundFile(File f)
Checks whether this file is a sound file.

Parameters:
f - File to check
Returns:
true if it's a sound file, false otherwise

getExtension

public static String getExtension(File f)
Gets the file extension. TODO: There are at least 2 other methods like this scattered around the SC code, we should move them all to util package.

Parameters:
f - which wants the extension
Returns:
Return the extension as a String

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.