public class Mp4DataBox extends AbstractMp4Box
Format is as follows: :length (4 bytes) :name 'Data' (4 bytes) :atom version (1 byte) :atom type flags (3 bytes) :locale field (4 bytes) //Currently always zero :data
Modifier and Type | Field and Description |
---|---|
static int |
DATA_HEADER_LENGTH |
static String |
IDENTIFIER |
static int |
NULL_LENGTH |
static int |
NUMBER_LENGTH |
static int |
PRE_DATA_LENGTH |
static int |
TYPE_LENGTH |
static int |
TYPE_POS |
static int |
TYPE_POS_INCLUDING_HEADER |
static int |
VERSION_LENGTH |
dataBuffer, header
Constructor and Description |
---|
Mp4DataBox(Mp4BoxHeader header,
ByteBuffer dataBuffer) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getByteData()
Return raw byte data only vaid for byte fields
|
String |
getContent() |
List<Short> |
getNumbers()
Return numbers, only valid for numeric fields
|
int |
getType() |
getData, getHeader
public static final String IDENTIFIER
public static final int VERSION_LENGTH
public static final int TYPE_LENGTH
public static final int NULL_LENGTH
public static final int PRE_DATA_LENGTH
public static final int DATA_HEADER_LENGTH
public static final int TYPE_POS
public static final int TYPE_POS_INCLUDING_HEADER
public static final int NUMBER_LENGTH
public Mp4DataBox(Mp4BoxHeader header, ByteBuffer dataBuffer)
header
- parentHeader infodataBuffer
- data of box (doesnt include parentHeader data)Copyright © 2005–2020 jthink.net. All rights reserved.