public class Mp4GenreField extends Mp4TagTextNumberField
This class allows you to retrieve either the internal genreid, or the display value
NUMBER_LENGTH, numbers
content, dataSize
id, logger, parentHeader
Constructor and Description |
---|
Mp4GenreField(String genreId)
Construct genre, if cant find match just default to first genre
|
Mp4GenreField(String id,
ByteBuffer data) |
Modifier and Type | Method and Description |
---|---|
protected void |
build(ByteBuffer data)
Processes the data and sets the position of the data buffer to just after the end of this fields data
ready for processing next field.
|
static boolean |
isValidGenre(String genreId)
Precheck to see if the value is a valid genre or whether you should use a custom genre.
|
copyContent, getDataBytes, getFieldType, getNumbers
getContent, getEncoding, isBinary, isEmpty, setContent, setEncoding, toString
getId, getIdBytes, getRawContent, getRawContentDataOnly, isBinary, isCommon
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, getRawContent, isBinary, isCommon
public Mp4GenreField(String id, ByteBuffer data) throws UnsupportedEncodingException
UnsupportedEncodingException
public Mp4GenreField(String genreId)
genreId
- key into ID3v1 list (offset by one) or String value in ID3listpublic static boolean isValidGenre(String genreId)
genreId
- protected void build(ByteBuffer data) throws UnsupportedEncodingException
Mp4TagField
build
in class Mp4TagTextNumberField
UnsupportedEncodingException
Copyright © 2005–2020 jthink.net. All rights reserved.