public class FrameBodyTCON extends AbstractFrameBodyTextInfo implements ID3v24FrameBody, ID3v23FrameBody
The 'Content type', which previously was stored as a one byte numeric value only, is now a numeric string. You may use one or several of the types as ID3v1.1 did or, since the category list would be impossible to maintain with accurate and up to date categories, define your own.
ID3V23:References to the ID3v1 genres can be made by, as first byte, enter "(" followed by a number from the genres list (appendix A) and ended with a ")" character. This is optionally followed by a refinement, e.g. "(21)" or "(4)Eurodisco". Several references can be made in the same frame, e.g. "(51)(39)". If the refinement should begin with a "(" character it should be replaced with "((", e.g. "((I can figure out any genre)" or "(55)((I think...)". The following new content types is defined in ID3v2 and is implemented in the same way as the numeric content types, e.g. "(RX)".
RX | Remix |
CR | Cover |
For more details, please refer to the ID3 specifications:
ID3V24:The 'Content type', which ID3v1 was stored as a one byte numeric value only, is now a string. You may use one or several of the ID3v1 types as numerical strings, or, since the category list would be impossible to maintain with accurate and up to date categories, define your own. Example: "21" $00 "Eurodisco" $00 You may also use any of the following keywords:RX | Remix |
CR | Cover |
TYPE_BODY
objectList
logger
Constructor and Description |
---|
FrameBodyTCON()
Creates a new FrameBodyTCON datatype.
|
FrameBodyTCON(ByteBuffer byteBuffer,
int frameSize)
Creates a new FrameBodyTCON datatype.
|
FrameBodyTCON(byte textEncoding,
String text)
Creates a new FrameBodyTCON datatype.
|
FrameBodyTCON(FrameBodyTCON body) |
Modifier and Type | Method and Description |
---|---|
static String |
convertGenericToID3v22Genre(String value) |
static String |
convertGenericToID3v23Genre(String value)
Convert value to internal genre value
|
static String |
convertGenericToID3v24Genre(String value)
Convert value to internal genre value
|
static String |
convertID3v22GenreToGeneric(String value) |
static String |
convertID3v23GenreToGeneric(String value)
Convert V23 format to Generic
i.e.
|
static String |
convertID3v24GenreToGeneric(String value)
Convert internal v24 genre value to generic genre
|
String |
getIdentifier()
The ID3v2 frame identifier
|
protected void |
setupObjectList()
Setup the Object List.
|
void |
setV23Format() |
addTextValue, getFirstTextValue, getNumberOfValues, getText, getTextWithoutTrailingNulls, getUserFriendlyValue, getValueAtIndex, getValues, setText, write
createStructure, equals, getSize, read, setSize, setSize
getBriefDescription, getHeader, getLongDescription, getObject, getObjectValue, getTextEncoding, isSubsetOf, iterator, setHeader, setObjectValue, setTextEncoding, toString
public FrameBodyTCON()
public FrameBodyTCON(FrameBodyTCON body)
public FrameBodyTCON(byte textEncoding, String text)
textEncoding
- text
- public FrameBodyTCON(ByteBuffer byteBuffer, int frameSize) throws InvalidTagException
byteBuffer
- frameSize
- InvalidTagException
public String getIdentifier()
getIdentifier
in class AbstractID3v2FrameBody
public static String convertGenericToID3v24Genre(String value)
value
- public static String convertGenericToID3v23Genre(String value)
value
- public static String convertID3v24GenreToGeneric(String value)
value
- public static String convertID3v23GenreToGeneric(String value)
value
- public void setV23Format()
protected void setupObjectList()
AbstractFrameBodyTextInfo
setupObjectList
in class AbstractFrameBodyTextInfo
Copyright © 2005–2020 jthink.net. All rights reserved.