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 StringCHANNEL_MODE_DUAL_MONOstatic StringCHANNEL_MODE_JOINT_STEREOstatic StringCHANNEL_MODE_MONOstatic StringCHANNEL_MODE_STEREOstatic StringEMPHASIS__50_15_MSstatic StringEMPHASIS_CCITT_J_17static StringEMPHASIS_NONEstatic StringMODE_EXTENSION_BANDS_12_31static StringMODE_EXTENSION_BANDS_16_31static StringMODE_EXTENSION_BANDS_4_31static StringMODE_EXTENSION_BANDS_8_31static StringMODE_EXTENSION_INTENSITY_M_S_STEREOstatic StringMODE_EXTENSION_INTENSITY_STEREOstatic StringMODE_EXTENSION_M_S_STEREOstatic StringMODE_EXTENSION_NAstatic StringMODE_EXTENSION_NONEstatic StringMPEG_LAYER_1static StringMPEG_LAYER_2static StringMPEG_LAYER_3static String[]MPEG_LAYERSstatic StringMPEG_VERSION_1_0static StringMPEG_VERSION_2_0static StringMPEG_VERSION_2_5 -
Constructor Summary
-
Method Summary
Modifier and Type Method Description protected intextractField(long frameHeader, long bitMask)intgetBitrate()StringgetChannelMode()StringgetEmphasis()StringgetLayer()intgetLengthInBytes()StringgetModeExtension()intgetSampleRate()StringgetVersion()booleanhasPadding()booleanisCopyright()booleanisOriginal()booleanisPrivate()booleanisProtection()
-
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()
-