|
||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.media.format.audio.mpeg.MpegAudioHeader
Represents an MPEG Audio Header
| Constructor Summary | |
MpegAudioHeader(java.io.InputStream data)
Constructs a new instance and attempts to extract an MPEG audio header from mediaObject |
|
| Method Summary | |
int |
getBitrate()
Returns the bit rate for this media in kbps. |
MpegAudioFormat.ChannelMode (src) |
getChannelMode()
Returns the channel mode for this MPEG audio. |
java.lang.Object |
getField(java.lang.String fieldname)
Retreives a field by name. |
java.lang.String[] |
getFieldNames()
Provides a list of the field names in this header |
MpegAudioFormat.Layer (src) |
getLayer()
Returns the MPEG layer of this media |
int |
getSamplerate()
Returns the sampling rate of this audio in Hz |
MpegAudioFormat.Version (src) |
getVersion()
Returns the MPEG version of this media |
boolean |
isCopyright()
Indicates whether this is copyrighted material or not |
boolean |
isOriginal()
Indicates whether this is the orginal media, or a copy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MpegAudioHeader(java.io.InputStream data)
throws MediaException (src) ,
FormatSyntaxException (src)
mediaObject
MediaException (src) - if an there is an error accessing the media
content
FormatSyntaxException (src) - if invalid data for this format is
encoutered
RemoteException - if an RMI error occurs| Method Detail |
public int getBitrate()
public MpegAudioFormat.ChannelMode (src) getChannelMode()
MpegAudioFormat.ChannelMode (src) public boolean isCopyright()
true if this is copyrighted materialpublic MpegAudioFormat.Layer (src) getLayer()
MpegAudioFormat (src) ,
MpegAudioFormat.Layer (src) public boolean isOriginal()
true if this is the orginal mediapublic int getSamplerate()
public MpegAudioFormat.Version (src) getVersion()
MpegAudioFormat.Version (src) public java.lang.String[] getFieldNames()
getFieldNames in interface MediaHeader (src) MediaHeader.getFieldNames()public java.lang.Object getField(java.lang.String fieldname)
int becomes java.lang.Integer
getField in interface MediaHeader (src) fieldname - the name of the field to access
null if the field name
doesn't existMediaHeader.getField(String)
|
||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||