Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

joeshmoe.mpeg
Class ID3Tagger  view ID3Tagger download ID3Tagger.java

java.lang.Object
  extended byjoeshmoe.mpeg.ID3Tagger

public class ID3Tagger
extends java.lang.Object

Reads and sets ID3 tags in MPEG audio files. Currently only V1 ID3 tags are supported.


Constructor Summary
ID3Tagger()
           
 
Method Summary
static ID3Tag readTag(java.io.File pFile)
          reads an ID3 tag from a file.
static boolean writeTag(java.io.File pFile, ID3Tag pTag)
          write an ID3 tag to a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ID3Tagger

public ID3Tagger()
Method Detail

readTag

public static ID3Tag readTag(java.io.File pFile)
                      throws java.io.IOException,
                             java.io.FileNotFoundException
reads an ID3 tag from a file. Returns null if no tag is present.


writeTag

public static boolean writeTag(java.io.File pFile,
                               ID3Tag pTag)
                        throws java.io.IOException,
                               java.io.FileNotFoundException
write an ID3 tag to a file. Note: will write a tag to the specified file whether or not it is a valid MPEG file.