org.jaudiotagger.tag.id3
Class AbstractID3v1Tag
java.lang.Object
org.jaudiotagger.tag.id3.AbstractTagItem
org.jaudiotagger.tag.id3.AbstractTag
org.jaudiotagger.tag.id3.AbstractID3Tag
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
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 java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
AbstractID3v1Tag
public AbstractID3v1Tag()
AbstractID3v1Tag
public AbstractID3v1Tag(AbstractID3v1Tag copyObject)
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