org.jaudiotagger.audio.asf.io
Class AsfHeaderReader

java.lang.Object
  extended by org.jaudiotagger.audio.asf.io.AsfHeaderReader

public class AsfHeaderReader
extends java.lang.Object

This class reads an Asf header out of an inputstream an creates an entagged.audioformats.asf.data.AsfHeaderobject if successfull.
For now only ASF ver 1.0 is supported, till ver 2.0 seems not to be used anywhere.
Asf headers contains other chunks. As of this other readers of current package are called from within.

Author:
Christian Laireiter

Method Summary
static AsfHeader readHeader(java.io.RandomAccessFile in)
          This method tries to extract an ASF-header out of the given stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readHeader

public static AsfHeader readHeader(java.io.RandomAccessFile in)
                            throws java.io.IOException
This method tries to extract an ASF-header out of the given stream.
If no header could be extracted null is returned.

Parameters:
in - File which contains the ASF header.
Returns:
AsfHeader-Wrapper, or null if no supported Asf header was found.
Throws:
java.io.IOException - Read errors