public class ID3v24Frame extends AbstractID3v2Frame
Modifier and Type | Class and Description |
---|---|
class |
ID3v24Frame.StatusFlags
Member Class This represents a frame headers Status Flags
Make adjustments if necessary based on frame type and specification.
|
Modifier and Type | Field and Description |
---|---|
protected static int |
FRAME_DATA_LENGTH_SIZE |
protected static int |
FRAME_ENCRYPTION_INDICATOR_SIZE |
protected static int |
FRAME_FLAGS_SIZE |
protected static int |
FRAME_GROUPING_INDICATOR_SIZE |
protected static int |
FRAME_HEADER_SIZE |
protected static int |
FRAME_ID_SIZE |
protected static int |
FRAME_SIZE_SIZE |
frameSize, identifier, TYPE_FRAME, TYPE_FRAME_SIZE, UNSUPPORTED_ID
frameBody
logger
Modifier | Constructor and Description |
---|---|
|
ID3v24Frame() |
|
ID3v24Frame(AbstractID3v2Frame frame)
Creates a new ID3v24 frame datatype based on another frame of different version
Converts the framebody to the equivalent v24 framebody or to UnsupportedFrameBody if identifier
is unknown.
|
|
ID3v24Frame(ByteBuffer byteBuffer)
Deprecated.
use
ID3v24Frame(ByteBuffer, String) instead |
|
ID3v24Frame(ByteBuffer byteBuffer,
String loggingFilename)
Creates a new ID3v24Frame datatype by reading from byteBuffer.
|
protected |
ID3v24Frame(ID3v23Frame frame,
String identifier)
Partially construct ID3v24 Frame form an IS3v23Frame
|
|
ID3v24Frame(ID3v24Frame frame)
Copy Constructor:Creates a new ID3v24 frame datatype based on another frame.
|
|
ID3v24Frame(Lyrics3v2Field field)
Creates a new ID3v2_4Frame datatype based on Lyrics3.
|
|
ID3v24Frame(String identifier)
Creates a new ID3v2_4Frame of type identifier.
|
Modifier and Type | Method and Description |
---|---|
void |
createStructure()
Return String Representation of body
|
boolean |
equals(Object obj)
Returns true if this datatype and its body equals the argument and its
body.
|
org.jaudiotagger.tag.id3.AbstractID3v2Frame.EncodingFlags |
getEncodingFlags()
Get Encoding Flags Object
|
int |
getEncryptionMethod() |
protected int |
getFrameFlagsSize() |
protected int |
getFrameHeaderSize() |
protected int |
getFrameIdSize() |
protected int |
getFrameSizeSize() |
int |
getGroupIdentifier() |
int |
getSize()
Return size of frame
|
AbstractID3v2Frame.StatusFlags |
getStatusFlags()
Get Status Flags Object
|
boolean |
isBinary()
Determines whether the represented field contains (is made up of) binary
data, instead of text data.
Software can identify fields to be displayed because they are human readable if this method returns false . |
boolean |
isCommon()
Identifies a field to be of common use.
Some software may differ between common and not common fields. |
boolean |
isValidID3v2FrameIdentifier(String identifier)
Does the frame identifier meet the syntax for a idv3v2 frame identifier.
|
void |
read(ByteBuffer byteBuffer)
Read the frame from the specified file.
|
void |
setEncoding(Charset encoding)
Sets the charset encoding used by the field.
|
void |
write(ByteArrayOutputStream tagBuffer)
Write the frame.
|
copyContent, getContent, getEncoding, getId, getIdentifier, getLoggingFilename, getRawContent, isBinary, isEmpty, isPadding, readBody, readBody, readEncryptedBody, readIdentifier, setContent, setLoggingFilename
getBody, isSubsetOf, setBody, toString
protected static final int FRAME_DATA_LENGTH_SIZE
protected static final int FRAME_ID_SIZE
protected static final int FRAME_FLAGS_SIZE
protected static final int FRAME_SIZE_SIZE
protected static final int FRAME_ENCRYPTION_INDICATOR_SIZE
protected static final int FRAME_GROUPING_INDICATOR_SIZE
protected static final int FRAME_HEADER_SIZE
public ID3v24Frame()
public ID3v24Frame(String identifier)
identifier
- defines the type of body to be createdpublic ID3v24Frame(ID3v24Frame frame)
frame
- protected ID3v24Frame(ID3v23Frame frame, String identifier) throws InvalidFrameException
Used for Special Cases
frame
- identifier
- InvalidFrameException
public ID3v24Frame(AbstractID3v2Frame frame) throws InvalidFrameException
frame
- to construct a new frame fromInvalidFrameException
public ID3v24Frame(Lyrics3v2Field field) throws InvalidTagException
field
- InvalidTagException
public ID3v24Frame(ByteBuffer byteBuffer, String loggingFilename) throws InvalidFrameException, InvalidDataTypeException
byteBuffer
- to read fromloggingFilename
- InvalidFrameException
InvalidDataTypeException
public ID3v24Frame(ByteBuffer byteBuffer) throws InvalidFrameException, InvalidDataTypeException
ID3v24Frame(ByteBuffer, String)
insteadbyteBuffer
- to read fromInvalidFrameException
InvalidDataTypeException
protected int getFrameIdSize()
getFrameIdSize
in class AbstractID3v2Frame
protected int getFrameSizeSize()
getFrameSizeSize
in class AbstractID3v2Frame
protected int getFrameFlagsSize()
protected int getFrameHeaderSize()
getFrameHeaderSize
in class AbstractID3v2Frame
public boolean equals(Object obj)
AbstractTagFrame
getSubId
id string.equals
in class AbstractID3v2Frame
obj
- public int getSize()
getSize
in class AbstractTagItem
public void read(ByteBuffer byteBuffer) throws InvalidFrameException, InvalidDataTypeException
read
in class AbstractTagItem
byteBuffer
- to read the frame fromInvalidFrameException
InvalidDataTypeException
public void write(ByteArrayOutputStream tagBuffer)
write
in class AbstractID3v2Frame
public AbstractID3v2Frame.StatusFlags getStatusFlags()
getStatusFlags
in class AbstractID3v2Frame
public org.jaudiotagger.tag.id3.AbstractID3v2Frame.EncodingFlags getEncodingFlags()
getEncodingFlags
in class AbstractID3v2Frame
public int getEncryptionMethod()
public int getGroupIdentifier()
public boolean isValidID3v2FrameIdentifier(String identifier)
identifier
- to be checkedpublic void createStructure()
createStructure
in class AbstractID3v2Frame
public boolean isCommon()
TagField
public boolean isBinary()
TagField
false
.public void setEncoding(Charset encoding)
encoding
- charset.Copyright © 2005–2020 jthink.net. All rights reserved.