org.jaudiotagger.tag.id3
Class AbstractID3v1Tag

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

public abstract class AbstractID3v1Tag
extends AbstractID3Tag

This is the abstract base class for all ID3v1 tags.

Author:
: Eric Farng, : Paul Taylor

Field Summary
protected static byte END_OF_FIELD
           
protected static java.util.regex.Pattern endofStringPattern
           
protected static int FIELD_ALBUM_LENGTH
           
protected static int FIELD_ALBUM_POS
           
protected static int FIELD_ARTIST_LENGTH
           
protected static int FIELD_ARTIST_POS
           
protected static int FIELD_GENRE_LENGTH
           
protected static int FIELD_GENRE_POS
           
protected static int FIELD_TAGID_LENGTH
           
protected static int FIELD_TAGID_POS
           
protected static int FIELD_TITLE_LENGTH
           
protected static int FIELD_TITLE_POS
           
protected static int FIELD_YEAR_LENGTH
           
protected static int FIELD_YEAR_POS
           
static java.util.logging.Logger logger
           
protected static int TAG_DATA_LENGTH
           
protected static byte[] TAG_ID
           
protected static int TAG_LENGTH
           
protected static java.lang.String TYPE_ALBUM
           
protected static java.lang.String TYPE_ARTIST
           
protected static java.lang.String TYPE_GENRE
           
protected static java.lang.String TYPE_TITLE
           
protected static java.lang.String TYPE_YEAR
           
 
Fields inherited from class org.jaudiotagger.tag.id3.AbstractID3Tag
TAG_RELEASE
 
Fields inherited from class org.jaudiotagger.tag.id3.AbstractTag
TYPE_TAG
 
Constructor Summary
AbstractID3v1Tag()
           
AbstractID3v1Tag(AbstractID3v1Tag copyObject)
           
 
Method Summary
 void delete(java.io.RandomAccessFile file)
          Delete tag from file Looks for tag and if found lops it off the file.
 int getSize()
          Return the size of this tag, the size is fixed for tags of this type
 
Methods inherited from class org.jaudiotagger.tag.id3.AbstractID3Tag
getIdentifier, getLoggingFilename, getMajorVersion, getRelease, getRevision, setLoggingFilename, toString
 
Methods inherited from class org.jaudiotagger.tag.id3.AbstractTag
equals, iterator, seek, write
 
Methods inherited from class org.jaudiotagger.tag.id3.AbstractTagItem
isSubsetOf, read
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

public static java.util.logging.Logger logger

END_OF_FIELD

protected static final byte END_OF_FIELD
See Also:
Constant Field Values

endofStringPattern

protected static java.util.regex.Pattern endofStringPattern

TAG_ID

protected static final byte[] TAG_ID

TAG_LENGTH

protected static final int TAG_LENGTH
See Also:
Constant Field Values

TAG_DATA_LENGTH

protected static final int TAG_DATA_LENGTH
See Also:
Constant Field Values

FIELD_TAGID_LENGTH

protected static final int FIELD_TAGID_LENGTH
See Also:
Constant Field Values

FIELD_TITLE_LENGTH

protected static final int FIELD_TITLE_LENGTH
See Also:
Constant Field Values

FIELD_ARTIST_LENGTH

protected static final int FIELD_ARTIST_LENGTH
See Also:
Constant Field Values

FIELD_ALBUM_LENGTH

protected static final int FIELD_ALBUM_LENGTH
See Also:
Constant Field Values

FIELD_YEAR_LENGTH

protected static final int FIELD_YEAR_LENGTH
See Also:
Constant Field Values

FIELD_GENRE_LENGTH

protected static final int FIELD_GENRE_LENGTH
See Also:
Constant Field Values

FIELD_TAGID_POS

protected static final int FIELD_TAGID_POS
See Also:
Constant Field Values

FIELD_TITLE_POS

protected static final int FIELD_TITLE_POS
See Also:
Constant Field Values

FIELD_ARTIST_POS

protected static final int FIELD_ARTIST_POS
See Also:
Constant Field Values

FIELD_ALBUM_POS

protected static final int FIELD_ALBUM_POS
See Also:
Constant Field Values

FIELD_YEAR_POS

protected static final int FIELD_YEAR_POS
See Also:
Constant Field Values

FIELD_GENRE_POS

protected static final int FIELD_GENRE_POS
See Also:
Constant Field Values

TYPE_TITLE

protected static final java.lang.String TYPE_TITLE
See Also:
Constant Field Values

TYPE_ARTIST

protected static final java.lang.String TYPE_ARTIST
See Also:
Constant Field Values

TYPE_ALBUM

protected static final java.lang.String TYPE_ALBUM
See Also:
Constant Field Values

TYPE_YEAR

protected static final java.lang.String TYPE_YEAR
See Also:
Constant Field Values

TYPE_GENRE

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

AbstractID3v1Tag

public AbstractID3v1Tag()

AbstractID3v1Tag

public AbstractID3v1Tag(AbstractID3v1Tag copyObject)
Method Detail

getSize

public int getSize()
Return the size of this tag, the size is fixed for tags of this type

Specified by:
getSize in class AbstractTagItem
Returns:
size of this tag in bytes

delete

public void delete(java.io.RandomAccessFile file)
            throws java.io.IOException
Delete tag from file Looks for tag and if found lops it off the file.

Specified by:
delete in class AbstractTag
Parameters:
file - to delete the tag from
Throws:
java.io.IOException - if there was a problem accessing the file