org.farng.mp3.id3
Class FrameBodyAENC

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

public class FrameBodyAENC
extends AbstractID3v2FrameBody

4.19.   Audio encryption

   This frame indicates if the actual audio stream is encrypted, and by

   whom. Since standardisation of such encryption scheme is beyond this
   document, all "AENC" frames begin with a terminated string with a
   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 encrypted audio file. Questions
   regarding the encrypted audio should be sent to the email address
   specified. If a $00 is found directly after the 'Frame size' and the
   audio file indeed is encrypted, the whole file may be considered
   useless.

   After the 'Owner identifier', a pointer to an unencrypted part of the
   audio can be specified. The 'Preview start' and 'Preview length' is
   described in frames. If no part is unencrypted, these fields should
   be left zeroed. After the 'preview length' field follows optionally a
   data block required for decryption of the audio. There may be more

   than one "AENC" frames in a tag, but only one with the same 'Owner
   identifier'.

     <Header for 'Audio encryption', ID: "AENC">
     Owner identifier   <text string> $00

     Preview start      $xx xx
     Preview length     $xx xx
     Encryption info    <binary data>

Version:
$Revision: 3 $
Author:
Eric Farng

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

FrameBodyAENC

public FrameBodyAENC()
Creates a new FrameBodyAENC object.


FrameBodyAENC

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


FrameBodyAENC

public FrameBodyAENC(java.lang.String owner,
                     short previewStart,
                     short previewLength,
                     byte[] data)
Creates a new FrameBodyAENC object.


FrameBodyAENC

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

Throws:
java.io.IOException
InvalidTagException
Method Detail

getIdentifier

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

getOwner

public java.lang.String getOwner()

getOwner

public void getOwner(java.lang.String description)

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