org.farng.mp3.id3
Class FrameBodyPRIV

java.lang.Object
  extended by org.farng.mp3.AbstractMP3FileItem
      extended by org.farng.mp3.AbstractMP3FragmentBody
          extended by org.farng.mp3.id3.AbstractID3v2FrameBody
              extended by org.farng.mp3.id3.FrameBodyPRIV
All Implemented Interfaces:
MP3MetadataContainer

public class FrameBodyPRIV
extends AbstractID3v2FrameBody

4.27.   Private frame

   This frame is used to contain information from a software producer
   that its program uses and does not fit into the other frames. The
   frame consists of an 'Owner identifier' string and the binary data.
   The 'Owner identifier' is a null-terminated string with a URL [URL]
   containing an email address, or a link to a location where an email

   address can be found, that belongs to the organisation responsible
   for the frame. Questions regarding the frame should be sent to the
   indicated email address. The tag may contain more than one "PRIV"
   frame but only with different contents.

     <Header for 'Private frame', ID: "PRIV">
     Owner identifier      <text string> $00
     The private data     

<binary data>

Version:
$Revision: 3 $
Author:
Eric Farng

Constructor Summary
FrameBodyPRIV()
          Creates a new FrameBodyPRIV object.
FrameBodyPRIV(FrameBodyPRIV body)
          Creates a new FrameBodyPRIV object.
FrameBodyPRIV(java.io.RandomAccessFile file)
          Creates a new FrameBodyPRIV object.
FrameBodyPRIV(java.lang.String owner, byte[] data)
          Creates a new FrameBodyPRIV object.
 
Method Summary
 java.lang.String getBriefDescription()
          This method calls toString for all it's objects and appends them without any newline characters.
 byte[] getData()
           
 java.lang.String getIdentifier()
           
 java.lang.String getOwner()
           
 void setData(byte[] data)
           
 void setOwner(java.lang.String owner)
           
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, 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

FrameBodyPRIV

public FrameBodyPRIV()
Creates a new FrameBodyPRIV object.


FrameBodyPRIV

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


FrameBodyPRIV

public FrameBodyPRIV(java.lang.String owner,
                     byte[] data)
Creates a new FrameBodyPRIV object.


FrameBodyPRIV

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

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

setData

public void setData(byte[] data)

getData

public byte[] getData()

getIdentifier

public java.lang.String getIdentifier()
Specified by:
getIdentifier in class AbstractMP3FileItem

setOwner

public void setOwner(java.lang.String owner)

getOwner

public java.lang.String getOwner()

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