public class FrameBodyUSLT extends AbstractID3v2FrameBody implements ID3v23FrameBody, ID3v24FrameBody
<Header for 'Unsynchronised lyrics/text transcription', ID: "USLT"> | |
Text encoding | $xx |
Language | $xx xx xx |
Content descriptor | <text string according to encoding> $00 (00) |
Lyrics/text | <full text string according to encoding> |
getFirstTextValue()
For more details, please refer to the ID3 specifications:
TYPE_BODY
objectList
logger
Constructor and Description |
---|
FrameBodyUSLT()
Creates a new FrameBodyUSLT dataType.
|
FrameBodyUSLT(ByteBuffer byteBuffer,
int frameSize)
Creates a new FrameBodyUSLT datatype, populated from buffer
|
FrameBodyUSLT(byte textEncoding,
String language,
String description,
String text)
Creates a new FrameBodyUSLT datatype.
|
FrameBodyUSLT(FrameBodyUSLT body)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addLyric(Lyrics3Line line) |
void |
addLyric(String text)
Add additional lyric to the lyric field
|
String |
getDescription()
Get a description field
|
String |
getFirstTextValue()
Get first value
|
String |
getIdentifier()
The ID3v2 frame identifier
|
String |
getLanguage()
Get the language field
|
String |
getLyric()
Get the lyric field
|
String |
getUserFriendlyValue() |
void |
setDescription(String description)
Set a description field
|
void |
setLanguage(String language)
Set the language field
|
void |
setLyric(String lyric)
Set the lyric field
|
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
|
void |
write(ByteArrayOutputStream tagBuffer)
Write the contents of this datatype to the byte array
|
createStructure, equals, getSize, read, setSize, setSize
getBriefDescription, getHeader, getLongDescription, getObject, getObjectValue, getTextEncoding, isSubsetOf, iterator, setHeader, setObjectValue, setTextEncoding, toString
public FrameBodyUSLT()
public FrameBodyUSLT(FrameBodyUSLT body)
body
- public FrameBodyUSLT(byte textEncoding, String language, String description, String text)
textEncoding
- language
- description
- text
- public FrameBodyUSLT(ByteBuffer byteBuffer, int frameSize) throws InvalidTagException
byteBuffer
- frameSize
- InvalidTagException
InvalidTagException
public String getUserFriendlyValue()
getUserFriendlyValue
in class AbstractTagFrameBody
public void setDescription(String description)
description
- public String getDescription()
public String getIdentifier()
getIdentifier
in class AbstractID3v2FrameBody
public void setLanguage(String language)
language
- public String getLanguage()
public void setLyric(String lyric)
lyric
- public String getLyric()
public String getFirstTextValue()
public void addLyric(String text)
text
- public void addLyric(Lyrics3Line line)
line
- public void write(ByteArrayOutputStream tagBuffer)
AbstractID3v2FrameBody
write
in class AbstractID3v2FrameBody
protected void setupObjectList()
AbstractTagFrameBody
setupObjectList
in class AbstractTagFrameBody
Copyright © 2005–2020 jthink.net. All rights reserved.