public class FrameBodyTRCK extends AbstractFrameBodyNumberTotal implements ID3v23FrameBody, ID3v24FrameBody
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 |
---|
FrameBodyTRCK()
Creates a new FrameBodyTRCK datatype.
|
FrameBodyTRCK(ByteBuffer byteBuffer,
int frameSize)
Creates a new FrameBodyTRCK datatype.
|
FrameBodyTRCK(byte textEncoding,
Integer trackNo,
Integer trackTotal) |
FrameBodyTRCK(byte textEncoding,
String text)
Creates a new FrameBodyTRCK datatype, the value is parsed literally
|
FrameBodyTRCK(FrameBodyTRCK body) |
Modifier and Type | Method and Description |
---|---|
String |
getIdentifier()
The ID3v2 frame identifier
|
Integer |
getTrackNo() |
String |
getTrackNoAsText() |
Integer |
getTrackTotal() |
String |
getTrackTotalAsText() |
void |
setText(String text) |
void |
setTrackNo(Integer trackNo) |
void |
setTrackNo(String trackNo) |
void |
setTrackTotal(Integer trackTotal) |
void |
setTrackTotal(String trackTotal) |
getNumber, getNumberAsText, getText, getTotal, getTotalAsText, getUserFriendlyValue, setNumber, setNumber, setTotal, setTotal, setupObjectList
createStructure, equals, getSize, read, setSize, setSize, write
getBriefDescription, getHeader, getLongDescription, getObject, getObjectValue, getTextEncoding, isSubsetOf, iterator, setHeader, setObjectValue, setTextEncoding, toString
public FrameBodyTRCK()
public FrameBodyTRCK(FrameBodyTRCK body)
public FrameBodyTRCK(byte textEncoding, String text)
textEncoding
- text
- public FrameBodyTRCK(ByteBuffer byteBuffer, int frameSize) throws InvalidTagException
byteBuffer
- frameSize
- IOException
InvalidTagException
public String getIdentifier()
getIdentifier
in class AbstractFrameBodyNumberTotal
public Integer getTrackNo()
public String getTrackNoAsText()
public void setTrackNo(Integer trackNo)
public void setTrackNo(String trackNo)
public Integer getTrackTotal()
public String getTrackTotalAsText()
public void setTrackTotal(Integer trackTotal)
public void setTrackTotal(String trackTotal)
public void setText(String text)
setText
in class AbstractFrameBodyNumberTotal
Copyright © 2005–2020 jthink.net. All rights reserved.