org.jaudiotagger.tag.id3
Class AbstractTag

java.lang.Object
  extended by org.jaudiotagger.tag.id3.AbstractTagItem
      extended by org.jaudiotagger.tag.id3.AbstractTag
Direct Known Subclasses:
AbstractID3Tag, AbstractLyrics3

public abstract class AbstractTag
extends AbstractTagItem

A tag is term given to a container that holds audio metadata


Field Summary
protected static java.lang.String TYPE_TAG
           
 
Fields inherited from class org.jaudiotagger.tag.id3.AbstractTagItem
logger
 
Constructor Summary
AbstractTag()
           
AbstractTag(AbstractTag copyObject)
           
 
Method Summary
abstract  void delete(java.io.RandomAccessFile file)
          Removes the specific tag from the file
 boolean equals(java.lang.Object obj)
          Determines whether another datatype is equal to this tag.
abstract  java.util.Iterator iterator()
           
abstract  boolean seek(java.nio.ByteBuffer byteBuffer)
          Looks for this tag in the buffer
abstract  void write(java.io.RandomAccessFile file)
          Writes the tag to the file
 
Methods inherited from class org.jaudiotagger.tag.id3.AbstractTagItem
getIdentifier, getSize, isSubsetOf, read
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_TAG

protected static final java.lang.String TYPE_TAG
See Also:
Constant Field Values
Constructor Detail

AbstractTag

public AbstractTag()

AbstractTag

public AbstractTag(AbstractTag copyObject)
Method Detail

seek

public abstract boolean seek(java.nio.ByteBuffer byteBuffer)
Looks for this tag in the buffer

Parameters:
byteBuffer -
Returns:
returns true if found, false otherwise.

write

public abstract void write(java.io.RandomAccessFile file)
                    throws java.io.IOException
Writes the tag to the file

Parameters:
file -
Throws:
java.io.IOException

delete

public abstract void delete(java.io.RandomAccessFile file)
                     throws java.io.IOException
Removes the specific tag from the file

Parameters:
file - MP3 file to append to.
Throws:
java.io.IOException - on any I/O error

equals

public boolean equals(java.lang.Object obj)
Determines whether another datatype is equal to this tag. It just compares if they are the same class, then calls super.equals(obj).

Overrides:
equals in class AbstractTagItem
Parameters:
obj - The object to compare
Returns:
if they are equal

iterator

public abstract java.util.Iterator iterator()
Returns: