org.jaudiotagger.tag.id3.framebody
Class FrameBodyOWNE

java.lang.Object
  extended by org.jaudiotagger.tag.id3.AbstractTagItem
      extended by org.jaudiotagger.tag.id3.AbstractTagFrameBody
          extended by org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody
              extended by org.jaudiotagger.tag.id3.framebody.FrameBodyOWNE
All Implemented Interfaces:
ID3v23FrameBody, ID3v24FrameBody

public class FrameBodyOWNE
extends AbstractID3v2FrameBody
implements ID3v24FrameBody, ID3v23FrameBody

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 payed' field. The first three characters of this field contains the currency used for the transaction, encoded according to ISO-4217 alphabetic currency code. Concatenated to this is the actual price payed, 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 payed <text string> $00
Date of purch. <text string>
Seller<text string according to encoding>

For more details, please refer to the ID3 specifications:

Version:
$Id: FrameBodyOWNE.java,v 1.19 2009/11/12 15:42:56 paultaylor Exp $
Author:
: Paul Taylor, : Eric Farng

Field Summary
 
Fields inherited from class org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody
TYPE_BODY
 
Fields inherited from class org.jaudiotagger.tag.id3.AbstractTagFrameBody
objectList
 
Fields inherited from class org.jaudiotagger.tag.id3.AbstractTagItem
logger
 
Constructor Summary
FrameBodyOWNE()
          Creates a new FrameBodyOWNE datatype.
FrameBodyOWNE(java.nio.ByteBuffer byteBuffer, int frameSize)
          Creates a new FrameBodyOWNE datatype.
FrameBodyOWNE(byte textEncoding, java.lang.String pricePaid, java.lang.String dateOfPurchase, java.lang.String seller)
          Creates a new FrameBodyOWNE datatype.
FrameBodyOWNE(FrameBodyOWNE body)
           
 
Method Summary
 java.lang.String getIdentifier()
          The ID3v2 frame identifier
protected  void setupObjectList()
          Create the list of Datatypes that this body expects in the correct order This method needs to be implemented by concrete subclasses
 void write(java.io.ByteArrayOutputStream tagBuffer)
          If the seller name cannot be encoded using current encoder, change the encoder
 
Methods inherited from class org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody
createStructure, equals, getSize, read, setSize, setSize
 
Methods inherited from class org.jaudiotagger.tag.id3.AbstractTagFrameBody
getBriefDescription, getHeader, getLongDescription, getObject, getObjectValue, getTextEncoding, isSubsetOf, iterator, setHeader, setObjectValue, setTextEncoding, toString
 
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 datatype.


FrameBodyOWNE

public FrameBodyOWNE(FrameBodyOWNE body)

FrameBodyOWNE

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

Parameters:
textEncoding -
pricePaid -
dateOfPurchase -
seller -

FrameBodyOWNE

public FrameBodyOWNE(java.nio.ByteBuffer byteBuffer,
                     int frameSize)
              throws InvalidTagException
Creates a new FrameBodyOWNE datatype.

Parameters:
byteBuffer -
frameSize -
Throws:
InvalidTagException - if unable to create framebody from buffer
Method Detail

getIdentifier

public java.lang.String getIdentifier()
The ID3v2 frame identifier

Specified by:
getIdentifier in class AbstractID3v2FrameBody
Returns:
the ID3v2 frame identifier for this frame type

write

public void write(java.io.ByteArrayOutputStream tagBuffer)
If the seller name cannot be encoded using current encoder, change the encoder

Overrides:
write in class AbstractID3v2FrameBody

setupObjectList

protected void setupObjectList()
Description copied from class: AbstractTagFrameBody
Create the list of Datatypes that this body expects in the correct order This method needs to be implemented by concrete subclasses

Specified by:
setupObjectList in class AbstractTagFrameBody