org.farng.mp3.id3
Class AbstractID3v2Frame

java.lang.Object
  extended byorg.farng.mp3.AbstractMP3FileItem
      extended byorg.farng.mp3.AbstractMP3Fragment
          extended byorg.farng.mp3.id3.AbstractID3v2Frame
Direct Known Subclasses:
ID3v2_2Frame

public abstract class AbstractID3v2Frame
extends AbstractMP3Fragment

This abstract class is each frame header inside a ID3v2 tag

Version:
$Revision: 1.4 $
Author:
Eric Farng

Constructor Summary
protected AbstractID3v2Frame()
          Creates a new AbstractID3v2Frame object.
protected AbstractID3v2Frame(AbstractID3v2Frame frame)
          Creates a new AbstractID3v2Frame object.
protected AbstractID3v2Frame(AbstractID3v2FrameBody body)
          Creates a new AbstractID3v2Frame object.
 
Method Summary
 java.lang.String getIdentifier()
          ID string that usually corresponds to the class name, but can be displayed to the user.
static boolean isValidID3v2FrameIdentifier(java.lang.String identifier)
           
protected static AbstractID3v2FrameBody readBody(java.lang.String identifier, java.io.RandomAccessFile file)
           
 java.lang.String toString()
           
 
Methods inherited from class org.farng.mp3.AbstractMP3Fragment
equals, getBody, isSubsetOf, setBody
 
Methods inherited from class org.farng.mp3.AbstractMP3FileItem
getSize, read, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractID3v2Frame

protected AbstractID3v2Frame()
Creates a new AbstractID3v2Frame object.


AbstractID3v2Frame

protected AbstractID3v2Frame(AbstractID3v2FrameBody body)
Creates a new AbstractID3v2Frame object.


AbstractID3v2Frame

protected AbstractID3v2Frame(AbstractID3v2Frame frame)
Creates a new AbstractID3v2Frame object.

Method Detail

getIdentifier

public java.lang.String getIdentifier()
Description copied from class: AbstractMP3FileItem
ID string that usually corresponds to the class name, but can be displayed to the user. It is not indended to identify each individual instance.

Specified by:
getIdentifier in class AbstractMP3FileItem
Returns:
ID string

isValidID3v2FrameIdentifier

public static boolean isValidID3v2FrameIdentifier(java.lang.String identifier)

toString

public java.lang.String toString()

readBody

protected static AbstractID3v2FrameBody readBody(java.lang.String identifier,
                                                 java.io.RandomAccessFile file)
                                          throws java.io.IOException,
                                                 InvalidTagException
Throws:
java.io.IOException
InvalidTagException


Copyright (c) 2004 Eric Farng