public abstract class AbstractFrameBodyNumberTotal extends AbstractID3v2FrameBody
The 'Track number/Position in set' frame is a numeric string containing the order number of the audio-file on its original recording. This may be extended with a "/" character and a numeric string containing the total number of tracks/elements on the original recording. e.g. "4/9". Some applications like to prepend the track number with a zero to aid sorting, (i.e 02 comes before 10)
For more details, please refer to the ID3 specifications:
TYPE_BODY
objectList
logger
Constructor and Description |
---|
AbstractFrameBodyNumberTotal()
Creates a new FrameBodyTRCK datatype.
|
AbstractFrameBodyNumberTotal(AbstractFrameBodyNumberTotal body) |
AbstractFrameBodyNumberTotal(ByteBuffer byteBuffer,
int frameSize)
Creates a new FrameBodyTRCK datatype.
|
AbstractFrameBodyNumberTotal(byte textEncoding,
Integer trackNo,
Integer trackTotal) |
AbstractFrameBodyNumberTotal(byte textEncoding,
String text)
Creates a new FrameBodyTRCK datatype, the value is parsed literally
|
Modifier and Type | Method and Description |
---|---|
abstract String |
getIdentifier()
The ID3v2 frame identifier
|
Integer |
getNumber() |
String |
getNumberAsText() |
String |
getText() |
Integer |
getTotal() |
String |
getTotalAsText() |
String |
getUserFriendlyValue() |
void |
setNumber(Integer trackNo) |
void |
setNumber(String trackNo) |
void |
setText(String text) |
void |
setTotal(Integer trackTotal) |
void |
setTotal(String trackTotal) |
protected void |
setupObjectList()
Create the list of Datatypes that this body
expects in the correct order This method needs to be implemented by concrete subclasses
|
createStructure, equals, getSize, read, setSize, setSize, write
getBriefDescription, getHeader, getLongDescription, getObject, getObjectValue, getTextEncoding, isSubsetOf, iterator, setHeader, setObjectValue, setTextEncoding, toString
public AbstractFrameBodyNumberTotal()
public AbstractFrameBodyNumberTotal(AbstractFrameBodyNumberTotal body)
public AbstractFrameBodyNumberTotal(byte textEncoding, String text)
textEncoding
- text
- public AbstractFrameBodyNumberTotal(byte textEncoding, Integer trackNo, Integer trackTotal)
public AbstractFrameBodyNumberTotal(ByteBuffer byteBuffer, int frameSize) throws InvalidTagException
byteBuffer
- frameSize
- IOException
InvalidTagException
public String getUserFriendlyValue()
getUserFriendlyValue
in class AbstractTagFrameBody
public abstract String getIdentifier()
getIdentifier
in class AbstractID3v2FrameBody
public String getText()
public void setText(String text)
public Integer getNumber()
public String getNumberAsText()
public void setNumber(Integer trackNo)
public void setNumber(String trackNo)
public Integer getTotal()
public String getTotalAsText()
public void setTotal(Integer trackTotal)
public void setTotal(String trackTotal)
protected void setupObjectList()
AbstractTagFrameBody
setupObjectList
in class AbstractTagFrameBody
Copyright © 2005–2020 jthink.net. All rights reserved.