2
* Jthink Copyright (C)2010
4
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser
5
* General Public License as published by the Free Software Foundation; either version 2.1 of the License,
6
* or (at your option) any later version.
8
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
9
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
* See the GNU Lesser General Public License for more details.
12
* You should have received a copy of the GNU Lesser General Public License along with this library; if not,
13
* you can get a copy from http://www.opensource.org/licenses/lgpl-license.php or write to the Free Software
14
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
package org.jaudiotagger.tag.id3.framebody;
18
import org.jaudiotagger.tag.InvalidTagException;
19
import org.jaudiotagger.tag.datatype.ByteArraySizeTerminated;
20
import org.jaudiotagger.tag.datatype.DataTypes;
21
import org.jaudiotagger.tag.id3.ID3v23Frames;
23
import java.nio.ByteBuffer;
29
* Container for an encrypted frame, we cannot decrypt encrypted frame but it may be possible
30
* for the calling application to decrypt the frame if they understand how it has been encrypted,
31
* information on this will be held within an ENCR frame
33
* @author : Paul Taylor
35
public class FrameBodyEncrypted extends AbstractID3v2FrameBody implements ID3v24FrameBody, ID3v23FrameBody
37
private String identifier=null;
40
* Creates a new FrameBodyEncrypted dataType.
42
public FrameBodyEncrypted(String identifier)
44
this.identifier=identifier;
47
public FrameBodyEncrypted(FrameBodyEncrypted body)
58
* @throws InvalidTagException
60
public FrameBodyEncrypted(String identifier,ByteBuffer byteBuffer, int frameSize) throws InvalidTagException
62
super(byteBuffer, frameSize);
63
this.identifier=identifier;
66
* The ID3v2 frame identifier
68
* @return the ID3v2 frame identifier for this frame type
70
public String getIdentifier()
78
protected void setupObjectList()
80
objectList.add(new ByteArraySizeTerminated(DataTypes.OBJ_DATA, this));
b'\\ No newline at end of file'