public class Mp4DiscNoField extends Mp4TagTextNumberField
Contains some reserved fields that we currently ignore Reserved:2 bytes Disc Number:2 bytes Total no of Discs:2 bytes
Modifier and Type | Field and Description |
---|---|
private static int |
DISC_NO_INDEX |
private static int |
DISC_TOTAL_INDEX |
private static int |
NONE_VALUE_INDEX |
NUMBER_LENGTH, numbers
content, dataSize
id, logger, parentHeader
Constructor and Description |
---|
Mp4DiscNoField(int discNo)
Create new Disc No field with only discNo
|
Mp4DiscNoField(int discNo,
int total)
Create new Disc No Field with Disc No and total number of discs
|
Mp4DiscNoField(java.lang.String discValue)
Create new Disc Field parsing the String for the discno/total
|
Mp4DiscNoField(java.lang.String id,
java.nio.ByteBuffer data) |
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.
|
java.lang.Short |
getDiscNo() |
java.lang.Short |
getDiscTotal() |
void |
setDiscNo(int discNo)
Set Disc No
|
void |
setDiscTotal(int discTotal)
Set total number of discs
|
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
private static final int NONE_VALUE_INDEX
private static final int DISC_NO_INDEX
private static final int DISC_TOTAL_INDEX
public Mp4DiscNoField(java.lang.String discValue) throws FieldDataInvalidException
discValue
- FieldDataInvalidException
public Mp4DiscNoField(int discNo)
discNo
- public Mp4DiscNoField(int discNo, int total)
discNo
- total
- public Mp4DiscNoField(java.lang.String id, java.nio.ByteBuffer data) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
protected void build(java.nio.ByteBuffer data) throws java.io.UnsupportedEncodingException
Mp4TagField
build
in class Mp4TagTextNumberField
java.io.UnsupportedEncodingException
public java.lang.Short getDiscNo()
public void setDiscNo(int discNo)
discNo
- public java.lang.Short getDiscTotal()
public void setDiscTotal(int discTotal)
discTotal
- Copyright © 2005-2013 java.net. All Rights Reserved.