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)
           
 
Method Summary
 boolean equals(Border b)
           
 boolean equals(java.lang.Object o)
           
 byte getMajorVersion()
           
 byte getRevisionNumber()
           
 int getSize()
           
 boolean hasExtendedHeader()
           
 boolean hasFooter()
           
 int hashCode()
           
 boolean hasUnsynchronisation()
           
 boolean isExperimental()
           
 void setSize(int size)
           
 java.lang.String toString()
           
 void write(java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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

Constructor Detail

Border

public Border(boolean unsynchronisation,
              boolean extendedHeader,
              boolean experimentalIndicator,
              boolean footerPresent,
              int size,
              byte[] identifier)

Border

public Border(int size,
              byte[] identifier)
Method Detail

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