org.metasyntactic.id3.v2
Class Id3v2File

java.lang.Object
  |
  +--java.io.File
        |
        +--org.metasyntactic.id3.v2.Id3v2File
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class Id3v2File
extends java.io.File

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
Id3v2File(java.io.File parent, java.lang.String child)
           
Id3v2File(java.lang.String fileName)
          Creates new Id3v1File
Id3v2File(java.lang.String parent, java.lang.String child)
           
 
Method Summary
 boolean addTag(Tag tag)
          Add's this tag to the file passed in.
 Tag getTag()
           
 boolean hasTag()
          Returns true if this file has a tag
static void main(java.lang.String[] args)
           
 Tag removeTag()
          Returns true if the file is modified from this operation.
 java.lang.String toString()
           
 
Methods inherited from class java.io.File
canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Id3v2File

public Id3v2File(java.lang.String fileName)
Creates new Id3v1File


Id3v2File

public Id3v2File(java.io.File parent,
                 java.lang.String child)

Id3v2File

public Id3v2File(java.lang.String parent,
                 java.lang.String child)
Method Detail

removeTag

public Tag removeTag()
              throws java.io.IOException
Returns true if the file is modified from this operation.

java.io.IOException

addTag

public boolean addTag(Tag tag)
               throws java.io.IOException,
                      Id3v2Exception
Add's this tag to the file passed in. If the file does not already have a tag, then the tag is appended. Otherwise, this tag will replace the current tag

java.io.IOException
Id3v2Exception

hasTag

public boolean hasTag()
               throws java.io.IOException
Returns true if this file has a tag

java.io.IOException

getTag

public Tag getTag()
           throws java.io.IOException,
                  Id3v2Exception
java.io.IOException
Id3v2Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.io.File

main

public static void main(java.lang.String[] args)