public class Mp4TagTextNumberField extends Mp4TagTextField
But reads the data content as an array of 16 bit unsigned numbers
Modifier and Type | Field and Description |
---|---|
static int |
NUMBER_LENGTH |
protected List<Short> |
numbers |
content, dataSize
id, logger, parentHeader
Constructor and Description |
---|
Mp4TagTextNumberField(String id,
ByteBuffer data) |
Mp4TagTextNumberField(String id,
String numberArray)
Create a new number, already parsed in subclasses
|
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.
|
void |
copyContent(TagField field)
This method copies the data of the given field to the current data.
|
protected byte[] |
getDataBytes()
Recreate the raw data content from the list of numbers
|
Mp4FieldType |
getFieldType() |
List<Short> |
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 static final int NUMBER_LENGTH
public Mp4TagTextNumberField(String id, String numberArray)
id
- numberArray
- public Mp4TagTextNumberField(String id, ByteBuffer data) throws UnsupportedEncodingException
UnsupportedEncodingException
protected byte[] getDataBytes()
getDataBytes
in class Mp4TagTextField
public void copyContent(TagField field)
TagField
copyContent
in interface TagField
copyContent
in class Mp4TagTextField
field
- The field containing the data to be taken.public Mp4FieldType getFieldType()
getFieldType
in class Mp4TagTextField
protected void build(ByteBuffer data) throws UnsupportedEncodingException
Mp4TagField
build
in class Mp4TagTextField
UnsupportedEncodingException
Copyright © 2005–2020 jthink.net. All rights reserved.