org.farng.mp3.id3
Class FrameBodyWXXX

java.lang.Object
  extended byorg.farng.mp3.AbstractMP3FileItem
      extended byorg.farng.mp3.AbstractMP3FragmentBody
          extended byorg.farng.mp3.id3.AbstractID3v2FrameBody
              extended byorg.farng.mp3.id3.FrameBodyWXXX

public class FrameBodyWXXX
extends AbstractID3v2FrameBody

   This frame is intended for URL [URL] links concerning the audio file
   in a similar way to the other "W"-frames. The frame body consists

   of a description of the string, represented as a terminated string,
   followed by the actual URL. The URL is always encoded with ISO-8859-1
   [ISO-8859-1]. There may be more than one "WXXX" frame in each tag,
   but only one with the same description.

     <Header for 'User defined URL link frame', ID: "WXXX">
     Text encoding     $xx
     Description       <text string according to encoding> $00 (00)

     URL               <text string>

Version:
$Revision: 1.4 $
Author:
Eric Farng

Constructor Summary
FrameBodyWXXX()
          Creates a new FrameBodyWXXX object.
FrameBodyWXXX(byte textEncoding, java.lang.String description, java.lang.String urlLink)
          Creates a new FrameBodyWXXX object.
FrameBodyWXXX(FrameBodyWXXX body)
          Creates a new FrameBodyWXXX object.
FrameBodyWXXX(java.io.RandomAccessFile file)
          Creates a new FrameBodyWXXX object.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if this object and its entire MP3Object array list equals the argument.
 java.lang.String getBriefDescription()
          This method calls toString for all it's objects and appends them without any newline characters.
 java.lang.String getIdentifier()
          ID string that usually corresponds to the class name, but can be displayed to the user.
 java.lang.String getUrlLink()
           
protected  void setupObjectList()
          Create the order of MP3Object objects that this body expects.
 void setUrlLink(java.lang.String urlLink)
           
 
Methods inherited from class org.farng.mp3.id3.AbstractID3v2FrameBody
readHeader, writeHeader
 
Methods inherited from class org.farng.mp3.AbstractMP3FragmentBody
appendToObjectList, getDescription, getObject, getObjectListIterator, getSize, has6ByteHeader, isSubsetOf, iterator, read, setObject, toString, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FrameBodyWXXX

public FrameBodyWXXX()
Creates a new FrameBodyWXXX object.


FrameBodyWXXX

public FrameBodyWXXX(FrameBodyWXXX body)
Creates a new FrameBodyWXXX object.


FrameBodyWXXX

public FrameBodyWXXX(byte textEncoding,
                     java.lang.String description,
                     java.lang.String urlLink)
Creates a new FrameBodyWXXX object.


FrameBodyWXXX

public FrameBodyWXXX(java.io.RandomAccessFile file)
              throws java.io.IOException,
                     InvalidTagException
Creates a new FrameBodyWXXX object.

Method Detail

getBriefDescription

public java.lang.String getBriefDescription()
Description copied from class: AbstractMP3FragmentBody
This method calls toString for all it's objects and appends them without any newline characters.

Overrides:
getBriefDescription in class AbstractMP3FragmentBody
Returns:
brief description string

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

setUrlLink

public void setUrlLink(java.lang.String urlLink)

getUrlLink

public java.lang.String getUrlLink()

equals

public boolean equals(java.lang.Object obj)
Description copied from class: AbstractMP3FragmentBody
Returns true if this object and its entire MP3Object array list equals the argument. This object is equal to the argument only if they are the same class.

Overrides:
equals in class AbstractID3v2FrameBody

setupObjectList

protected void setupObjectList()
Description copied from class: AbstractMP3FragmentBody
Create the order of MP3Object objects that this body expects. This method needs to be overwritten.

Specified by:
setupObjectList in class AbstractMP3FragmentBody


Copyright (c) 2004 Eric Farng