org.jaudiotagger.tag.id3.framebody
Class FrameBodyENCR
java.lang.Object
org.jaudiotagger.tag.id3.AbstractTagItem
org.jaudiotagger.tag.id3.AbstractTagFrameBody
org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody
org.jaudiotagger.tag.id3.framebody.FrameBodyENCR
- All Implemented Interfaces:
- ID3v23FrameBody, ID3v24FrameBody
public class FrameBodyENCR
- extends AbstractID3v2FrameBody
- implements ID3v24FrameBody, ID3v23FrameBody
Encryption method registration frame.
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
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. Values below $80 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 section 3.3.1, flag j
for more information.
<Header for 'Encryption method registration', ID: "ENCR"> |
Owner identifier | <text string> $00 |
Method symbol | $xx |
Encryption data | <binary data> |
For more details, please refer to the ID3 specifications:
- Version:
- $Id: FrameBodyENCR.java,v 1.15 2009/11/12 13:25:22 paultaylor Exp $
- Author:
- : Paul Taylor, : Eric Farng
Method Summary |
java.lang.String |
getIdentifier()
The ID3v2 frame identifier |
java.lang.String |
getOwner()
|
void |
setOwner(java.lang.String owner)
|
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 |
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 |
FrameBodyENCR
public FrameBodyENCR()
- Creates a new FrameBodyENCR datatype.
FrameBodyENCR
public FrameBodyENCR(FrameBodyENCR body)
FrameBodyENCR
public FrameBodyENCR(java.lang.String owner,
byte methodSymbol,
byte[] data)
- Creates a new FrameBodyENCR datatype.
- Parameters:
owner
- methodSymbol
- data
-
FrameBodyENCR
public FrameBodyENCR(java.nio.ByteBuffer byteBuffer,
int frameSize)
throws InvalidTagException
- Creates a new FrameBodyENCR datatype.
- Parameters:
byteBuffer
- frameSize
-
- Throws:
InvalidTagException
- if unable to create framebody from buffer
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
setOwner
public void setOwner(java.lang.String owner)
- Parameters:
owner
-
getOwner
public java.lang.String getOwner()
- Returns:
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