org.metasyntactic.id3.v1
Class Id3v1File

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

public class Id3v1File
extends java.io.File

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
Id3v1File(java.io.File file)
           
Id3v1File(java.io.File parent, java.lang.String child)
           
Id3v1File(java.lang.String fileName)
          Creates new Id3v1File
Id3v1File(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()
          Removes the id3 tag from this file and returns it.
 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

Id3v1File

public Id3v1File(java.io.File file)

Id3v1File

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


Id3v1File

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

Id3v1File

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

removeTag

public Tag removeTag()
              throws java.io.IOException
Removes the id3 tag from this file and returns it. If the file does not have a tag then null is returned.

java.io.IOException

addTag

public boolean addTag(Tag tag)
               throws java.io.IOException
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

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
java.io.IOException

toString

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

main

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