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)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Padding
public Padding(int size)
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