org.farng.mp3.id3
Class FrameBodyENCR

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.FrameBodyENCR
All Implemented Interfaces:
MP3MetadataContainer

public class FrameBodyENCR
extends AbstractID3v2FrameBody

4.25.   Encryption method registration

   To identify with which method a frame has been encrypted the

   encryption method must be registered in the tag with this frame. 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 this specific encryption method. Questions regarding the

   encryption method should be sent to the indicated email address. The
   'Method symbol' contains a value that is associated with this method
   throughout the whole tag, in the range $80-F0. All other values are
   reserved. The 'Method symbol' may optionally be followed by
   encryption specific data. There may be several "ENCR"

frames in a tag
   but only one containing the same symbol and only one containing the
   same owner identifier. The method must be used somewhere in the tag.
   See the description of the frame encryption flag in the ID3v2
   structure document [ID3v2-strct] for more information.

     <Header for 'Encryption method registration', ID: "ENCR">
     Owner identifier    <text string> $00
     Method symbol       $xx

     Encryption data     <binary data>

Version:
$Revision: 3 $
Author:
Eric Farng

Constructor Summary
FrameBodyENCR()
          Creates a new FrameBodyENCR object.
FrameBodyENCR(FrameBodyENCR body)
          Creates a new FrameBodyENCR object.
FrameBodyENCR(java.io.RandomAccessFile file)
          Creates a new FrameBodyENCR object.
FrameBodyENCR(java.lang.String owner, byte methodSymbol, byte[] data)
          Creates a new FrameBodyENCR object.
 
Method Summary
 java.lang.String getIdentifier()
           
 java.lang.String getOwner()
           
 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, 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

FrameBodyENCR

public FrameBodyENCR()
Creates a new FrameBodyENCR object.


FrameBodyENCR

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


FrameBodyENCR

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


FrameBodyENCR

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

Throws:
java.io.IOException
InvalidTagException
Method Detail

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