public class Lyrics3Line extends AbstractDataType
frameBody, identifier, logger, size, TYPE_ELEMENT, value
Constructor and Description |
---|
Lyrics3Line(Lyrics3Line copy) |
Lyrics3Line(String identifier,
AbstractTagFrameBody frameBody)
Creates a new ObjectLyrics3Line datatype.
|
Modifier and Type | Method and Description |
---|---|
void |
addLyric(ID3v2LyricLine line) |
void |
addLyric(String newLyric) |
void |
addTimeStamp(Lyrics3TimeStamp time) |
boolean |
equals(Object obj) |
String |
getLyric() |
int |
getSize()
This defines the size in bytes of the datatype being
held when read/written to file.
|
Iterator<Lyrics3TimeStamp> |
getTimeStamp() |
boolean |
hasTimeStamp() |
void |
readByteArray(byte[] arr,
int offset)
This is the starting point for reading bytes from the file into the ID3 datatype
starting at offset.
|
void |
readString(String lineString,
int offset) |
void |
setLyric(ID3v2LyricLine line) |
void |
setLyric(String lyric) |
void |
setTimeStamp(Lyrics3TimeStamp time) |
String |
toString() |
byte[] |
writeByteArray()
Starting point write ID3 Datatype back to array of bytes.
|
String |
writeString() |
createStructure, getBody, getIdentifier, getValue, readByteArray, setBody, setValue
public Lyrics3Line(String identifier, AbstractTagFrameBody frameBody)
identifier
- frameBody
- public Lyrics3Line(Lyrics3Line copy)
public void setLyric(String lyric)
public void setLyric(ID3v2LyricLine line)
public String getLyric()
public int getSize()
AbstractDataType
getSize
in class AbstractDataType
public void setTimeStamp(Lyrics3TimeStamp time)
time
- public Iterator<Lyrics3TimeStamp> getTimeStamp()
public void addLyric(String newLyric)
public void addLyric(ID3v2LyricLine line)
public void addTimeStamp(Lyrics3TimeStamp time)
time
- public boolean equals(Object obj)
equals
in class AbstractDataType
obj
- public boolean hasTimeStamp()
public void readString(String lineString, int offset)
lineString
- offset
- NullPointerException
IndexOutOfBoundsException
public String writeString()
public void readByteArray(byte[] arr, int offset) throws InvalidDataTypeException
AbstractDataType
readByteArray
in class AbstractDataType
InvalidDataTypeException
public byte[] writeByteArray()
AbstractDataType
writeByteArray
in class AbstractDataType
Copyright © 2005–2020 jthink.net. All rights reserved.