org.farng.mp3.id3
Class AbstractID3v1

java.lang.Object
  extended byorg.farng.mp3.AbstractMP3FileItem
      extended byorg.farng.mp3.AbstractMP3Tag
          extended byorg.farng.mp3.id3.AbstractID3
              extended byorg.farng.mp3.id3.AbstractID3v1
Direct Known Subclasses:
ID3v1

public abstract class AbstractID3v1
extends AbstractID3

Superclass for all ID3v1 tags.

Version:
$Revision: 1.3 $
Author:
$author$

Constructor Summary
protected AbstractID3v1()
          Creates a new AbstractID3v1 object.
protected AbstractID3v1(AbstractID3v1 copyObject)
          Creates a new AbstractID3v1 object.
 
Method Summary
 void append(java.io.RandomAccessFile file)
          Appends this tag to the given file.
 void overwrite(java.io.RandomAccessFile file)
          Overwrites this tag to the given file.
 
Methods inherited from class org.farng.mp3.AbstractMP3Tag
append, delete, equals, getAlbumTitle, getAuthorComposer, getLeadArtist, getSongComment, getSongGenre, getSongLyric, getSongTitle, getTrackNumberOnAlbum, getYearReleased, isSubsetOf, iterator, overwrite, seek, setAlbumTitle, setAuthorComposer, setLeadArtist, setSongComment, setSongGenre, setSongLyric, setSongTitle, setTrackNumberOnAlbum, setYearReleased, write
 
Methods inherited from class org.farng.mp3.AbstractMP3FileItem
getIdentifier, getSize, isSubsetOf, read, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractID3v1

protected AbstractID3v1()
Creates a new AbstractID3v1 object.


AbstractID3v1

protected AbstractID3v1(AbstractID3v1 copyObject)
Creates a new AbstractID3v1 object.

Method Detail

append

public void append(java.io.RandomAccessFile file)
            throws java.io.IOException,
                   TagException
Description copied from class: AbstractMP3Tag
Appends this tag to the given file. Append means any information this tag contains will be added to the file's corresponding tag, but it will not replace any fields that the file already has. If the file does not have this specific tag, a new one will be created.

Specified by:
append in class AbstractMP3Tag
Parameters:
file - MP3 file to append to.
Throws:
TagException - on any exception generated by this library.
java.io.IOException - on any I/O error

overwrite

public void overwrite(java.io.RandomAccessFile file)
               throws java.io.IOException,
                      TagException
Description copied from class: AbstractMP3Tag
Overwrites this tag to the given file. Overwrite means any information this tag contains will replace any existing fields in the file's corresponding tag. If the file does not have this specific tag, a new one will be created.

Specified by:
overwrite in class AbstractMP3Tag
Parameters:
file - MP3 file to overwrite
Throws:
java.io.IOException - on any I/O error
TagException - on any exception generated by this library.


Copyright (c) 2004 Eric Farng