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
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(String discValue)
Create new Disc Field parsing the String for the discno/total
|
Mp4DiscNoField(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.
|
Short |
getDiscNo() |
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
public Mp4DiscNoField(String discValue) throws FieldDataInvalidException
discValue
- FieldDataInvalidException
public Mp4DiscNoField(int discNo)
discNo
- public Mp4DiscNoField(int discNo, int total)
discNo
- total
- public Mp4DiscNoField(String id, ByteBuffer data) throws UnsupportedEncodingException
UnsupportedEncodingException
protected void build(ByteBuffer data) throws UnsupportedEncodingException
Mp4TagField
build
in class Mp4TagTextNumberField
UnsupportedEncodingException
public Short getDiscNo()
public void setDiscNo(int discNo)
discNo
- public Short getDiscTotal()
public void setDiscTotal(int discTotal)
discTotal
- Copyright © 2005–2020 jthink.net. All rights reserved.