Package com.mpatric.mp3agic
Class MpegFrame
java.lang.Object
com.mpatric.mp3agic.MpegFrame
public class MpegFrame extends Object
-
Field Summary
Fields Modifier and Type Field Description static String
CHANNEL_MODE_DUAL_MONO
static String
CHANNEL_MODE_JOINT_STEREO
static String
CHANNEL_MODE_MONO
static String
CHANNEL_MODE_STEREO
static String
EMPHASIS__50_15_MS
static String
EMPHASIS_CCITT_J_17
static String
EMPHASIS_NONE
static String
MODE_EXTENSION_BANDS_12_31
static String
MODE_EXTENSION_BANDS_16_31
static String
MODE_EXTENSION_BANDS_4_31
static String
MODE_EXTENSION_BANDS_8_31
static String
MODE_EXTENSION_INTENSITY_M_S_STEREO
static String
MODE_EXTENSION_INTENSITY_STEREO
static String
MODE_EXTENSION_M_S_STEREO
static String
MODE_EXTENSION_NA
static String
MODE_EXTENSION_NONE
static String
MPEG_LAYER_1
static String
MPEG_LAYER_2
static String
MPEG_LAYER_3
static String[]
MPEG_LAYERS
static String
MPEG_VERSION_1_0
static String
MPEG_VERSION_2_0
static String
MPEG_VERSION_2_5
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description protected int
extractField(long frameHeader, long bitMask)
int
getBitrate()
String
getChannelMode()
String
getEmphasis()
String
getLayer()
int
getLengthInBytes()
String
getModeExtension()
int
getSampleRate()
String
getVersion()
boolean
hasPadding()
boolean
isCopyright()
boolean
isOriginal()
boolean
isPrivate()
boolean
isProtection()
-
Field Details
-
MPEG_VERSION_1_0
- See Also:
- Constant Field Values
-
MPEG_VERSION_2_0
- See Also:
- Constant Field Values
-
MPEG_VERSION_2_5
- See Also:
- Constant Field Values
-
MPEG_LAYER_1
- See Also:
- Constant Field Values
-
MPEG_LAYER_2
- See Also:
- Constant Field Values
-
MPEG_LAYER_3
- See Also:
- Constant Field Values
-
MPEG_LAYERS
-
CHANNEL_MODE_MONO
- See Also:
- Constant Field Values
-
CHANNEL_MODE_DUAL_MONO
- See Also:
- Constant Field Values
-
CHANNEL_MODE_JOINT_STEREO
- See Also:
- Constant Field Values
-
CHANNEL_MODE_STEREO
- See Also:
- Constant Field Values
-
MODE_EXTENSION_BANDS_4_31
- See Also:
- Constant Field Values
-
MODE_EXTENSION_BANDS_8_31
- See Also:
- Constant Field Values
-
MODE_EXTENSION_BANDS_12_31
- See Also:
- Constant Field Values
-
MODE_EXTENSION_BANDS_16_31
- See Also:
- Constant Field Values
-
MODE_EXTENSION_NONE
- See Also:
- Constant Field Values
-
MODE_EXTENSION_INTENSITY_STEREO
- See Also:
- Constant Field Values
-
MODE_EXTENSION_M_S_STEREO
- See Also:
- Constant Field Values
-
MODE_EXTENSION_INTENSITY_M_S_STEREO
- See Also:
- Constant Field Values
-
MODE_EXTENSION_NA
- See Also:
- Constant Field Values
-
EMPHASIS_NONE
- See Also:
- Constant Field Values
-
EMPHASIS__50_15_MS
- See Also:
- Constant Field Values
-
EMPHASIS_CCITT_J_17
- See Also:
- Constant Field Values
-
-
Constructor Details
-
MpegFrame
- Throws:
InvalidDataException
-
MpegFrame
public MpegFrame(byte frameData1, byte frameData2, byte frameData3, byte frameData4) throws InvalidDataException- Throws:
InvalidDataException
-
MpegFrame
protected MpegFrame()
-
-
Method Details
-
extractField
protected int extractField(long frameHeader, long bitMask) -
getBitrate
public int getBitrate() -
getChannelMode
-
isCopyright
public boolean isCopyright() -
getEmphasis
-
getLayer
-
getModeExtension
-
isOriginal
public boolean isOriginal() -
hasPadding
public boolean hasPadding() -
isPrivate
public boolean isPrivate() -
isProtection
public boolean isProtection() -
getSampleRate
public int getSampleRate() -
getVersion
-
getLengthInBytes
public int getLengthInBytes()
-