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 java.util.List<java.lang.Short> |
numbers |
content, dataSize
id, logger, parentHeader
Constructor and Description |
---|
Mp4TagTextNumberField(java.lang.String id,
java.nio.ByteBuffer data) |
Mp4TagTextNumberField(java.lang.String id,
java.lang.String numberArray)
Create a new number, already parsed in subclasses
|
Modifier and Type | Method and Description |
---|---|
protected void |
build(java.nio.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() |
java.util.List<java.lang.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
protected java.util.List<java.lang.Short> numbers
public Mp4TagTextNumberField(java.lang.String id, java.lang.String numberArray)
id
- numberArray
- public Mp4TagTextNumberField(java.lang.String id, java.nio.ByteBuffer data) throws java.io.UnsupportedEncodingException
java.io.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(java.nio.ByteBuffer data) throws java.io.UnsupportedEncodingException
Mp4TagField
build
in class Mp4TagTextField
java.io.UnsupportedEncodingException
public java.util.List<java.lang.Short> getNumbers()
Copyright © 2005-2013 java.net. All Rights Reserved.