org.farng.mp3.id3
Class FrameBodyOWNE

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

public class FrameBodyOWNE
extends AbstractID3v2FrameBody

4.23.   Ownership frame

   The ownership frame might be used as a reminder of a made transaction
   or, if signed, as proof. Note that the "USER" and "TOWN" frames are
   good to use in conjunction with this one. The frame begins, after the

   frame ID, size and encoding fields, with a 'price paid' field. The
   first three characters of this field contains the currency used for
   the transaction, encoded according to ISO 4217 [ISO-4217] alphabetic
   currency code. Concatenated to this is the actual price paid, as a
   numerical string using "." as the decimal separator. Next is an 8

   character date string (YYYYMMDD) followed by a string with the name
   of the seller as the last field in the frame. There may only be one
   "OWNE" frame in a tag.

     <Header for 'Ownership frame', ID: "OWNE">

     Text encoding     $xx
     Price paid        <text string> $00
     Date of purch.    <text string>

     Seller            <text string according to encoding>

Version:
$Revision: 1.4 $
Author:
Eric Farng

Constructor Summary
FrameBodyOWNE()
          Creates a new FrameBodyOWNE object.
FrameBodyOWNE(byte textEncoding, java.lang.String pricePaid, java.lang.String dateOfPurchase, java.lang.String seller)
          Creates a new FrameBodyOWNE object.
FrameBodyOWNE(FrameBodyOWNE body)
          Creates a new FrameBodyOWNE object.
FrameBodyOWNE(java.io.RandomAccessFile file)
          Creates a new FrameBodyOWNE object.
 
Method Summary
 java.lang.String getIdentifier()
          ID string that usually corresponds to the class name, but can be displayed to the user.
protected  void setupObjectList()
          Create the order of MP3Object objects that this body expects.
 
Methods inherited from class org.farng.mp3.id3.AbstractID3v2FrameBody
equals, readHeader, writeHeader
 
Methods inherited from class org.farng.mp3.AbstractMP3FragmentBody
appendToObjectList, getBriefDescription, 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

FrameBodyOWNE

public FrameBodyOWNE()
Creates a new FrameBodyOWNE object.


FrameBodyOWNE

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


FrameBodyOWNE

public FrameBodyOWNE(byte textEncoding,
                     java.lang.String pricePaid,
                     java.lang.String dateOfPurchase,
                     java.lang.String seller)
Creates a new FrameBodyOWNE object.


FrameBodyOWNE

public FrameBodyOWNE(java.io.RandomAccessFile file)
              throws java.io.IOException,
                     InvalidTagException
Creates a new FrameBodyOWNE 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

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