public class FrameBodyAENC extends AbstractID3v2FrameBody implements ID3v24FrameBody, ID3v23FrameBody
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 datablock 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> |
For more details, please refer to the ID3 specifications:
TYPE_BODY
objectList
logger
Constructor and Description |
---|
FrameBodyAENC()
Creates a new FrameBodyAENC datatype.
|
FrameBodyAENC(ByteBuffer byteBuffer,
int frameSize)
Creates a new FrameBodyAENC datatype.
|
FrameBodyAENC(FrameBodyAENC body) |
FrameBodyAENC(String owner,
short previewStart,
short previewLength,
byte[] data)
Creates a new FrameBodyAENC datatype.
|
Modifier and Type | Method and Description |
---|---|
String |
getIdentifier()
The ID3v2 frame identifier
|
String |
getOwner() |
void |
getOwner(String description) |
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
|
createStructure, equals, getSize, read, setSize, setSize, write
getBriefDescription, getHeader, getLongDescription, getObject, getObjectValue, getTextEncoding, getUserFriendlyValue, isSubsetOf, iterator, setHeader, setObjectValue, setTextEncoding, toString
public FrameBodyAENC()
public FrameBodyAENC(FrameBodyAENC body)
public FrameBodyAENC(String owner, short previewStart, short previewLength, byte[] data)
owner
- previewStart
- previewLength
- data
- public FrameBodyAENC(ByteBuffer byteBuffer, int frameSize) throws InvalidTagException
byteBuffer
- frameSize
- InvalidTagException
- if unable to create framebody from bufferpublic String getIdentifier()
getIdentifier
in class AbstractID3v2FrameBody
public String getOwner()
public void getOwner(String description)
description
- protected void setupObjectList()
AbstractTagFrameBody
setupObjectList
in class AbstractTagFrameBody
Copyright © 2005–2020 jthink.net. All rights reserved.