org.metasyntactic.id3.v2
Class Header

java.lang.Object
  |
  +--org.metasyntactic.id3.v2.Border
        |
        +--org.metasyntactic.id3.v2.Header

public class Header
extends Border

The first part of the ID3v2 tag is the 10 byte tag header, laid out as follows:


Field Summary
 
Fields inherited from class org.metasyntactic.id3.v2.Border
majorVersion, revisionNumber
 
Constructor Summary
Header(boolean unsynchronisation, boolean extendedHeader, boolean experimentalIndicator, boolean footerPresent, int size)
           
Header(int size)
           
 
Method Summary
static Header read(java.io.PushbackInputStream in)
          Reads in a header from the stream.
 
Methods inherited from class org.metasyntactic.id3.v2.Border
equals, equals, getMajorVersion, getRevisionNumber, getSize, hasExtendedHeader, hasFooter, hashCode, hasUnsynchronisation, isExperimental, setSize, toString, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Header

public Header(boolean unsynchronisation,
              boolean extendedHeader,
              boolean experimentalIndicator,
              boolean footerPresent,
              int size)

Header

public Header(int size)
Method Detail

read

public static Header read(java.io.PushbackInputStream in)
                   throws java.io.IOException,
                          Id3v2Exception
Reads in a header from the stream. If a header can't be found then null is returned. Also, if a header can't be found, then the stream is returned to it's original state

java.io.IOException
Id3v2Exception