Logo Search packages:      
Sourcecode: jampal version File versions  Download package

void pgbennett::id3::MP3File::writeTags (  ) throws FileNotFoundException, IOException [inline]

Writes the current state of the id3 tags to the file. What tags are written depends upon the tagType passed to the constructor.

Exceptions:
FileNotFoundExceptionif an error occurs
IOExceptionif an error occurs

Definition at line 591 of file MP3File.java.

References allow(), id3v1, ID3V1, id3v2, ID3V2, pgbennett::id3::ID3v1Tag::writeTag(), and pgbennett::id3::ID3v2Tag::writeTag().

                                              {
        
        // Write out id3v2 first because if the filesize is changed when an
        // id3v2 is written then the id3v1 may be moved away from the end
        // of the file which would cause it to not be recognized.
        if (allow(ID3V2)) {
            id3v2.writeTag();
        }
        if (allow(ID3V1)) {
            id3v1.writeTag();
        }
    }

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index