org.jboss.media.format.audio.oggvorbis
Class OggVorbisHeader

java.lang.Object
  extended byorg.jboss.media.format.audio.oggvorbis.OggVorbisHeader
All Implemented Interfaces:
MediaHeader (src) , java.io.Serializable

public class OggVorbisHeader
extends java.lang.Object
implements MediaHeader (src)

Represents an Ogg Vorbis header.

More info at www.vorbis.com and www.xiph.org/ogg/vorbis.

See Also:
Serialized Form

Constructor Summary
OggVorbisHeader(java.io.InputStream content)
          Default constructor
 
Method Summary
 java.lang.Object getField(java.lang.String fieldName)
          Returns the field with the given name downcast to Object.
 java.lang.String[] getFieldNames()
          Returns an array of Strings containing all the field names defined for the header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OggVorbisHeader

public OggVorbisHeader(java.io.InputStream content)
                throws MediaException (src) 
Default constructor

Method Detail

getFieldNames

public java.lang.String[] getFieldNames()
Description copied from interface: MediaHeader (src)
Returns an array of Strings containing all the field names defined for the header.

Specified by:
getFieldNames in interface MediaHeader (src)
Returns:
an array of header field names.
See Also:
MediaHeader.getFieldNames()

getField

public java.lang.Object getField(java.lang.String fieldName)
Description copied from interface: MediaHeader (src)
Returns the field with the given name downcast to Object. If the field is modeled as a Java base type, an instance of the corresponding wrapper class has to be returned. The value null is returned if a field name is passed that is not defined for the receiver.

Specified by:
getField in interface MediaHeader (src)
Parameters:
fieldName - header field name.
Returns:
the content of a header field.
See Also:
MediaHeader.getField(java.lang.String)