public abstract class AbstractFrameBodyPairs extends AbstractID3v2FrameBody implements ID3v24FrameBody
TYPE_BODY
objectList
logger
Constructor and Description |
---|
AbstractFrameBodyPairs()
Creates a new AbstractFrameBodyPairs datatype.
|
AbstractFrameBodyPairs(ByteBuffer byteBuffer,
int frameSize)
Creates a new AbstractFrameBodyPairs data type.
|
AbstractFrameBodyPairs(byte textEncoding,
String text)
Creates a new AbstractFrameBodyPairs data type.
|
Modifier and Type | Method and Description |
---|---|
void |
addPair(String text)
Parse text as a null separated pairing of function and name
|
void |
addPair(String function,
String name)
Add pair
|
abstract String |
getIdentifier()
The ID3v2 frame identifier
|
String |
getKeyAtIndex(int index)
Get key at index
|
int |
getNumberOfPairs() |
PairedTextEncodedStringNullTerminated.ValuePairs |
getPairing() |
String |
getText() |
String |
getUserFriendlyValue() |
String |
getValueAtIndex(int index)
Get value at index
|
void |
resetPairs()
Remove all Pairs
|
void |
setText(String text)
Set the text, decoded as pairs of involvee - involvement
|
protected void |
setupObjectList()
Consists of a text encoding , and then a series of null terminated Strings, there should be an even number
of Strings as they are paired as involvement/involvee
|
void |
write(ByteArrayOutputStream tagBuffer)
Because have a text encoding we need to check the data values do not contain characters that cannot be encoded in
current encoding before we write data.
|
createStructure, equals, getSize, read, setSize, setSize
getBriefDescription, getHeader, getLongDescription, getObject, getObjectValue, getTextEncoding, isSubsetOf, iterator, setHeader, setObjectValue, setTextEncoding, toString
public AbstractFrameBodyPairs()
public AbstractFrameBodyPairs(byte textEncoding, String text)
textEncoding
- text
- public AbstractFrameBodyPairs(ByteBuffer byteBuffer, int frameSize) throws InvalidTagException
byteBuffer
- frameSize
- InvalidTagException
public abstract String getIdentifier()
getIdentifier
in class AbstractID3v2FrameBody
public void setText(String text)
text
- public void addPair(String text)
text
- public void resetPairs()
public void write(ByteArrayOutputStream tagBuffer)
write
in class AbstractID3v2FrameBody
protected void setupObjectList()
setupObjectList
in class AbstractTagFrameBody
public PairedTextEncodedStringNullTerminated.ValuePairs getPairing()
public String getKeyAtIndex(int index)
index
- public String getValueAtIndex(int index)
index
- public int getNumberOfPairs()
public String getText()
public String getUserFriendlyValue()
getUserFriendlyValue
in class AbstractTagFrameBody
Copyright © 2005–2020 jthink.net. All rights reserved.