helliker.id3
Interface ID3Tag

All Known Implementing Classes:
ID3v1Tag, ID3v2Tag

public interface ID3Tag


Method Summary
 void copyFrom(ID3Tag tag)
          Copies information from the ID3Tag parameter and inserts it into this tag.
 byte[] getBytes()
          Returns a binary representation of the tag as it would appear in a file.
 void removeTag()
          Removes this tag from the file it is bound to.
 void writeTag()
          Saves all data in this tag to the file it is bound to.
 

Method Detail

copyFrom

public void copyFrom(ID3Tag tag)
Copies information from the ID3Tag parameter and inserts it into this tag. Previous data will be overwritten.

Parameters:
tag - the tag to copy from

writeTag

public void writeTag()
              throws java.io.IOException
Saves all data in this tag to the file it is bound to.

Throws:
java.io.IOException - if an error occurs

removeTag

public void removeTag()
               throws java.io.IOException
Removes this tag from the file it is bound to.

Throws:
java.io.IOException - if an error occurs

getBytes

public byte[] getBytes()
Returns a binary representation of the tag as it would appear in a file.

Returns:
a binary representation of the tag