net.sf.ext.helliker.id3
Interface ID3Tag

All Known Implementing Classes:
ID3v1Tag, ID3v2Tag

public interface ID3Tag

A common interface for ID3Tag objects so they can easily communicate with each other.

Version History:
1.2.1 - 2002.1023 by gruni
-Made sourcecode compliant to the Sun Coding Conventions
1.2 - 2002.0127 by helliker
-Added getBytes method.
1.1 - 2002/01/13 by helliker
-Initial version

Version:
1.2.1
Author:
Jonathan Hilliker

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

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

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

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

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

Returns:
a binary representation of the tag