org.metasyntactic.id3.v2
Class Border
java.lang.Object
|
+--org.metasyntactic.id3.v2.Border
- Direct Known Subclasses:
- Footer, Header
- public abstract class Border
- extends java.lang.Object
A border is represents one of the tags that surrounds the Id3v2 tag (i.e.
the header or the footer)
Field Summary |
protected byte |
majorVersion
The first byte of ID3v2 version is its major version |
protected byte |
revisionNumber
while the second byte is its revision number |
Constructor Summary |
Border(boolean unsynchronisation,
boolean extendedHeader,
boolean experimentalIndicator,
boolean footerPresent,
int size,
byte[] identifier)
|
Border(int size,
byte[] identifier)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
majorVersion
protected byte majorVersion
- The first byte of ID3v2 version is its major version
revisionNumber
protected byte revisionNumber
- while the second byte is its revision number
Border
public Border(boolean unsynchronisation,
boolean extendedHeader,
boolean experimentalIndicator,
boolean footerPresent,
int size,
byte[] identifier)
Border
public Border(int size,
byte[] identifier)
getMajorVersion
public byte getMajorVersion()
getRevisionNumber
public byte getRevisionNumber()
hasUnsynchronisation
public boolean hasUnsynchronisation()
hasExtendedHeader
public boolean hasExtendedHeader()
hasFooter
public boolean hasFooter()
isExperimental
public boolean isExperimental()
getSize
public int getSize()
setSize
public void setSize(int size)
write
public void write(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
equals
public boolean equals(Border b)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object