Class ID3V2FrameBase
- Object
-
- com.wowza.wms.media.mp3.model.idtags.ID3V2FrameBase
-
- All Implemented Interfaces:
IID3V2Frame
- Direct Known Subclasses:
ID3V2FrameAttachedPicture
,ID3V2FrameComment
,ID3V2FrameLinkedInformation
,ID3V2FramePrivate
,ID3V2FrameRawBytes
,ID3V2FrameRecommendedBufferSize
,ID3V2FrameSynchronizedText
,ID3V2FrameTextInformation
,ID3V2FrameTextInformationUserDefined
,ID3V2FrameURLLink
,ID3V2FrameURLLinkUserDefined
public abstract class ID3V2FrameBase extends Object implements IID3V2Frame
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ID3V2FrameBase.DeserializeResult
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_LANGUAGE
static int
FLAGS_DEFAULT
static int
HEADERSIZE
static String
TAG_APIC
static String
TAG_COMM
static String
TAG_LINK
static String
TAG_PRIV
static String
TAG_RBUF
static String
TAG_SYLT
static String
TAG_TALB
static String
TAG_TBPM
static String
TAG_TCOM
static String
TAG_TCON
static String
TAG_TCOP
static String
TAG_TDEN
static String
TAG_TDLY
static String
TAG_TDOR
static String
TAG_TDRC
static String
TAG_TDRL
static String
TAG_TDTG
static String
TAG_TENC
static String
TAG_TEXT
static String
TAG_TFLT
static String
TAG_TIPL
static String
TAG_TIT1
static String
TAG_TIT2
static String
TAG_TIT3
static String
TAG_TKEY
static String
TAG_TLAN
static String
TAG_TLEN
static String
TAG_TMCL
static String
TAG_TMED
static String
TAG_TMOO
static String
TAG_TOAL
static String
TAG_TOFN
static String
TAG_TOLY
static String
TAG_TOPE
static String
TAG_TOWN
static String
TAG_TPE1
static String
TAG_TPE2
static String
TAG_TPE3
static String
TAG_TPE4
static String
TAG_TPOS
static String
TAG_TPRO
static String
TAG_TPUB
static String
TAG_TRCK
static String
TAG_TRSN
static String
TAG_TRSO
static String
TAG_TSOA
static String
TAG_TSOP
static String
TAG_TSOT
static String
TAG_TSRC
static String
TAG_TSSE
static String
TAG_TSST
static String
TAG_TXXX
static String
TAG_UNKN
static String
TAG_WCOM
static String
TAG_WCOP
static String
TAG_WOAF
static String
TAG_WOAR
static String
TAG_WOAS
static String
TAG_WORS
static String
TAG_WPAY
static String
TAG_WPUB
static String
TAG_WXXX
static String[]
TAGS_TEXTINFORMATION
static String
TEXTENCODING_DEFAULT
static int
TEXTENCODING_ISO_8859_1
static String
TEXTENCODING_URL
static int
TEXTENCODING_UTF16
static int
TEXTENCODING_UTF16BE
static int
TEXTENCODING_UTF8
-
Constructor Summary
Constructors Constructor Description ID3V2FrameBase(String idStr, int flags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
byteStringLen(String value, int textEncoding)
static int
byteStringLen(String value, String encodingStr)
static ID3DeserializeFrameResult
deserializeFrame(byte[] buffer, int offset, int len)
static ID3V2FrameBase.DeserializeResult
deserializeString(byte[] buffer, int offset, int len, int textEncoding)
static ID3V2FrameBase.DeserializeResult
deserializeString(byte[] buffer, int offset, int len, String charsetName)
int
getFlags()
String
getIdStr()
String
getMapIdStr()
int
getSize()
int
serialize(byte[] buffer, int offset)
static int
serializeString(String value, byte[] buffer, int offset, int textEncoding, boolean addZero)
static int
serializeString(String value, byte[] buffer, int offset, String charsetName, boolean addZero)
static int
serializeStringLen(String value, int textEncoding, boolean addZero)
static int
serializeStringLen(String value, String encodingStr, boolean addZero)
void
setFlags(int flags)
void
setIdStr(String idStr)
static String
textEncodingToCharsetName(int textEncoding)
static String
trimTrailingZero(String value)
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.wowza.wms.media.mp3.model.idtags.IID3V2Frame
deserializeBody, getBodySize, serializeBody
-
-
-
-
Field Detail
-
HEADERSIZE
public static final int HEADERSIZE
- See Also:
- Constant Field Values
-
TEXTENCODING_ISO_8859_1
public static final int TEXTENCODING_ISO_8859_1
- See Also:
- Constant Field Values
-
TEXTENCODING_UTF16
public static final int TEXTENCODING_UTF16
- See Also:
- Constant Field Values
-
TEXTENCODING_UTF16BE
public static final int TEXTENCODING_UTF16BE
- See Also:
- Constant Field Values
-
TEXTENCODING_UTF8
public static final int TEXTENCODING_UTF8
- See Also:
- Constant Field Values
-
TEXTENCODING_URL
public static final String TEXTENCODING_URL
- See Also:
- Constant Field Values
-
TEXTENCODING_DEFAULT
public static final String TEXTENCODING_DEFAULT
- See Also:
- Constant Field Values
-
DEFAULT_LANGUAGE
public static final String DEFAULT_LANGUAGE
- See Also:
- Constant Field Values
-
TAG_UNKN
public static final String TAG_UNKN
- See Also:
- Constant Field Values
-
TAG_PRIV
public static final String TAG_PRIV
- See Also:
- Constant Field Values
-
TAG_APIC
public static final String TAG_APIC
- See Also:
- Constant Field Values
-
TAG_LINK
public static final String TAG_LINK
- See Also:
- Constant Field Values
-
TAG_SYLT
public static final String TAG_SYLT
- See Also:
- Constant Field Values
-
TAG_RBUF
public static final String TAG_RBUF
- See Also:
- Constant Field Values
-
TAG_TALB
public static final String TAG_TALB
- See Also:
- Constant Field Values
-
TAG_TBPM
public static final String TAG_TBPM
- See Also:
- Constant Field Values
-
TAG_TCOM
public static final String TAG_TCOM
- See Also:
- Constant Field Values
-
TAG_TCON
public static final String TAG_TCON
- See Also:
- Constant Field Values
-
TAG_TCOP
public static final String TAG_TCOP
- See Also:
- Constant Field Values
-
TAG_TDEN
public static final String TAG_TDEN
- See Also:
- Constant Field Values
-
TAG_TDLY
public static final String TAG_TDLY
- See Also:
- Constant Field Values
-
TAG_TDOR
public static final String TAG_TDOR
- See Also:
- Constant Field Values
-
TAG_TDRC
public static final String TAG_TDRC
- See Also:
- Constant Field Values
-
TAG_TDRL
public static final String TAG_TDRL
- See Also:
- Constant Field Values
-
TAG_TDTG
public static final String TAG_TDTG
- See Also:
- Constant Field Values
-
TAG_TENC
public static final String TAG_TENC
- See Also:
- Constant Field Values
-
TAG_TEXT
public static final String TAG_TEXT
- See Also:
- Constant Field Values
-
TAG_TFLT
public static final String TAG_TFLT
- See Also:
- Constant Field Values
-
TAG_TIPL
public static final String TAG_TIPL
- See Also:
- Constant Field Values
-
TAG_TIT1
public static final String TAG_TIT1
- See Also:
- Constant Field Values
-
TAG_TIT2
public static final String TAG_TIT2
- See Also:
- Constant Field Values
-
TAG_TIT3
public static final String TAG_TIT3
- See Also:
- Constant Field Values
-
TAG_TKEY
public static final String TAG_TKEY
- See Also:
- Constant Field Values
-
TAG_TLAN
public static final String TAG_TLAN
- See Also:
- Constant Field Values
-
TAG_TLEN
public static final String TAG_TLEN
- See Also:
- Constant Field Values
-
TAG_TMCL
public static final String TAG_TMCL
- See Also:
- Constant Field Values
-
TAG_TMED
public static final String TAG_TMED
- See Also:
- Constant Field Values
-
TAG_TMOO
public static final String TAG_TMOO
- See Also:
- Constant Field Values
-
TAG_TOAL
public static final String TAG_TOAL
- See Also:
- Constant Field Values
-
TAG_TOFN
public static final String TAG_TOFN
- See Also:
- Constant Field Values
-
TAG_TOLY
public static final String TAG_TOLY
- See Also:
- Constant Field Values
-
TAG_TOPE
public static final String TAG_TOPE
- See Also:
- Constant Field Values
-
TAG_TOWN
public static final String TAG_TOWN
- See Also:
- Constant Field Values
-
TAG_TPE1
public static final String TAG_TPE1
- See Also:
- Constant Field Values
-
TAG_TPE2
public static final String TAG_TPE2
- See Also:
- Constant Field Values
-
TAG_TPE3
public static final String TAG_TPE3
- See Also:
- Constant Field Values
-
TAG_TPE4
public static final String TAG_TPE4
- See Also:
- Constant Field Values
-
TAG_TPOS
public static final String TAG_TPOS
- See Also:
- Constant Field Values
-
TAG_TPRO
public static final String TAG_TPRO
- See Also:
- Constant Field Values
-
TAG_TPUB
public static final String TAG_TPUB
- See Also:
- Constant Field Values
-
TAG_TRCK
public static final String TAG_TRCK
- See Also:
- Constant Field Values
-
TAG_TRSN
public static final String TAG_TRSN
- See Also:
- Constant Field Values
-
TAG_TRSO
public static final String TAG_TRSO
- See Also:
- Constant Field Values
-
TAG_TSOA
public static final String TAG_TSOA
- See Also:
- Constant Field Values
-
TAG_TSOP
public static final String TAG_TSOP
- See Also:
- Constant Field Values
-
TAG_TSOT
public static final String TAG_TSOT
- See Also:
- Constant Field Values
-
TAG_TSRC
public static final String TAG_TSRC
- See Also:
- Constant Field Values
-
TAG_TSSE
public static final String TAG_TSSE
- See Also:
- Constant Field Values
-
TAG_TSST
public static final String TAG_TSST
- See Also:
- Constant Field Values
-
TAGS_TEXTINFORMATION
public static final String[] TAGS_TEXTINFORMATION
-
TAG_WCOM
public static final String TAG_WCOM
- See Also:
- Constant Field Values
-
TAG_WCOP
public static final String TAG_WCOP
- See Also:
- Constant Field Values
-
TAG_WOAF
public static final String TAG_WOAF
- See Also:
- Constant Field Values
-
TAG_WOAR
public static final String TAG_WOAR
- See Also:
- Constant Field Values
-
TAG_WOAS
public static final String TAG_WOAS
- See Also:
- Constant Field Values
-
TAG_WORS
public static final String TAG_WORS
- See Also:
- Constant Field Values
-
TAG_WPAY
public static final String TAG_WPAY
- See Also:
- Constant Field Values
-
TAG_WPUB
public static final String TAG_WPUB
- See Also:
- Constant Field Values
-
TAG_TXXX
public static final String TAG_TXXX
- See Also:
- Constant Field Values
-
TAG_COMM
public static final String TAG_COMM
- See Also:
- Constant Field Values
-
TAG_WXXX
public static final String TAG_WXXX
- See Also:
- Constant Field Values
-
FLAGS_DEFAULT
public static final int FLAGS_DEFAULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
textEncodingToCharsetName
public static String textEncodingToCharsetName(int textEncoding)
-
byteStringLen
public static int byteStringLen(String value, int textEncoding)
-
byteStringLen
public static int byteStringLen(String value, String encodingStr)
-
serializeStringLen
public static int serializeStringLen(String value, int textEncoding, boolean addZero)
-
serializeStringLen
public static int serializeStringLen(String value, String encodingStr, boolean addZero)
-
trimTrailingZero
public static String trimTrailingZero(String value)
-
serializeString
public static int serializeString(String value, byte[] buffer, int offset, int textEncoding, boolean addZero)
-
serializeString
public static int serializeString(String value, byte[] buffer, int offset, String charsetName, boolean addZero)
-
deserializeString
public static ID3V2FrameBase.DeserializeResult deserializeString(byte[] buffer, int offset, int len, int textEncoding)
-
deserializeString
public static ID3V2FrameBase.DeserializeResult deserializeString(byte[] buffer, int offset, int len, String charsetName)
-
serialize
public int serialize(byte[] buffer, int offset)
- Specified by:
serialize
in interfaceIID3V2Frame
-
getIdStr
public String getIdStr()
- Specified by:
getIdStr
in interfaceIID3V2Frame
-
setIdStr
public void setIdStr(String idStr)
- Specified by:
setIdStr
in interfaceIID3V2Frame
-
getFlags
public int getFlags()
- Specified by:
getFlags
in interfaceIID3V2Frame
-
setFlags
public void setFlags(int flags)
- Specified by:
setFlags
in interfaceIID3V2Frame
-
getSize
public int getSize()
- Specified by:
getSize
in interfaceIID3V2Frame
-
getMapIdStr
public String getMapIdStr()
- Specified by:
getMapIdStr
in interfaceIID3V2Frame
-
deserializeFrame
public static ID3DeserializeFrameResult deserializeFrame(byte[] buffer, int offset, int len)
-
-