FrameBodyENCRpublic class FrameBodyENCR extends AbstractID3v2FrameBody implements ID3v24FrameBody, ID3v23FrameBodyEncryption 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:
|
Constructors Summary |
---|
public FrameBodyENCR()Creates a new FrameBodyENCR datatype.
this.setObjectValue(DataTypes.OBJ_OWNER, "");
this.setObjectValue(DataTypes.OBJ_METHOD_SYMBOL, (byte) 0);
this.setObjectValue(DataTypes.OBJ_ENCRYPTION_INFO, new byte[0]);
| public FrameBodyENCR(FrameBodyENCR body)
super(body);
| public FrameBodyENCR(String owner, byte methodSymbol, byte[] data)Creates a new FrameBodyENCR datatype.
this.setObjectValue(DataTypes.OBJ_OWNER, owner);
this.setObjectValue(DataTypes.OBJ_METHOD_SYMBOL, methodSymbol);
this.setObjectValue(DataTypes.OBJ_ENCRYPTION_INFO, data);
| public FrameBodyENCR(ByteBuffer byteBuffer, int frameSize)Creates a new FrameBodyENCR datatype.
super(byteBuffer, frameSize);
|
Methods Summary |
---|
public java.lang.String | getIdentifier()The ID3v2 frame identifier
return ID3v24Frames.FRAME_ID_ENCRYPTION;
| public java.lang.String | getOwner()
return (String) getObjectValue(DataTypes.OBJ_OWNER);
| public void | setOwner(java.lang.String owner)
setObjectValue(DataTypes.OBJ_OWNER, owner);
| protected void | setupObjectList()
objectList.add(new StringNullTerminated(DataTypes.OBJ_OWNER, this));
objectList.add(new NumberFixedLength(DataTypes.OBJ_METHOD_SYMBOL, this, 1));
objectList.add(new ByteArraySizeTerminated(DataTypes.OBJ_ENCRYPTION_INFO, this));
|
|