org.metasyntactic.id3.v2
Class Padding

java.lang.Object
  |
  +--org.metasyntactic.id3.v2.Padding

public class Padding
extends java.lang.Object

It is OPTIONAL to include padding after the final frame (at the end of the ID3 tag), making the size of all the frames together smaller than the size given in the tag header. A possible purpose of this padding is to allow for adding a few additional frames or enlarge existing frames within the tag without having to rewrite the entire file. The value of the padding bytes must be $00. A tag MUST NOT have any padding between the frames or between the tag header and the frames. Furthermore it MUST NOT have any padding when a tag footer is added to the tag.


Constructor Summary
Padding(int size)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean equals(Padding padding)
           
 int getSize()
           
 int hashCode()
           
static Padding read(java.io.PushbackInputStream in)
           
 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
 

Constructor Detail

Padding

public Padding(int size)
Method Detail

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

read

public static Padding read(java.io.PushbackInputStream in)
                    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(Padding padding)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object