public class TCONString extends TextEncodedStringSizeTerminated
frameBody, identifier, logger, size, TYPE_ELEMENT, value
Constructor and Description |
---|
TCONString(String identifier,
AbstractTagFrameBody frameBody)
Creates a new empty TextEncodedStringSizeTerminated datatype.
|
TCONString(TCONString object)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(String value)
Add an additional String to the current String value
|
boolean |
equals(Object obj) |
int |
getNumberOfValues()
How many values are held, each value is separated by a null terminator
|
String |
getValueAtIndex(int index)
Get the nth value
|
List<String> |
getValues() |
String |
getValueWithoutTrailingNull()
Get value(s) whilst removing any trailing nulls
|
boolean |
isNullSeperateMultipleValues()
If this field is used with ID3v24 then it is usual to null separate values.
|
void |
setNullSeperateMultipleValues(boolean nullSeperateMultipleValues) |
static List<String> |
splitV23(String value) |
checkTrailingNull, readByteArray, splitByNullSeperator, stripTrailingNull, writeByteArray, writeString, writeStringUTF16BEBOM, writeStringUTF16LEBOM
canBeEncoded, getCorrectDecoder, getSize, getTextEncodingCharSet, setSize, toString
createStructure, getBody, getIdentifier, getValue, readByteArray, setBody, setValue
public TCONString(String identifier, AbstractTagFrameBody frameBody)
identifier
- identifies the frame typeframeBody
- public TCONString(TCONString object)
object
- public boolean equals(Object obj)
equals
in class TextEncodedStringSizeTerminated
public boolean isNullSeperateMultipleValues()
public void setNullSeperateMultipleValues(boolean nullSeperateMultipleValues)
public void addValue(String value)
addValue
in class TextEncodedStringSizeTerminated
value
- public int getNumberOfValues()
getNumberOfValues
in class TextEncodedStringSizeTerminated
public String getValueAtIndex(int index)
getValueAtIndex
in class TextEncodedStringSizeTerminated
index
- IndexOutOfBoundsException
- if value does not existpublic List<String> getValues()
getValues
in class TextEncodedStringSizeTerminated
public String getValueWithoutTrailingNull()
getValueWithoutTrailingNull
in class TextEncodedStringSizeTerminated
Copyright © 2005–2020 jthink.net. All rights reserved.