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:
-
ID3v2/file identifier "ID3"
-
ID3v2 version $04 00
-
ID3v2 flags %abcd0000
-
ID3v2 size 4 * %0xxxxxxx
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 |
Header
public Header(boolean unsynchronisation,
boolean extendedHeader,
boolean experimentalIndicator,
boolean footerPresent,
int size)
Header
public Header(int size)
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