public class Mp4FtypBox extends AbstractMp4Box
Modifier and Type | Class and Description |
---|---|
static class |
Mp4FtypBox.Brand
Major brand, helps identify whats contained in the file, used by major and compatible brands
but this is not an exhaustive list, so for that reason we don't force the values read from the file
to tie in with this enum.
|
Modifier and Type | Field and Description |
---|---|
private static int |
COMPATIBLE_BRAND_LENGTH |
private java.util.List<java.lang.String> |
compatibleBrands |
private static int |
MAJOR_BRAND_LENGTH |
private static int |
MAJOR_BRAND_POS |
private static int |
MAJOR_BRAND_VERSION_LENGTH |
private static int |
MAJOR_BRAND_VERSION_POS |
private java.lang.String |
majorBrand |
private int |
majorBrandVersion |
dataBuffer, header
Constructor and Description |
---|
Mp4FtypBox(Mp4BoxHeader header,
java.nio.ByteBuffer dataBuffer) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getCompatibleBrands() |
java.lang.String |
getMajorBrand() |
int |
getMajorBrandVersion() |
void |
processData() |
java.lang.String |
toString() |
getData, getHeader
private java.lang.String majorBrand
private int majorBrandVersion
private java.util.List<java.lang.String> compatibleBrands
private static final int MAJOR_BRAND_POS
private static final int MAJOR_BRAND_LENGTH
private static final int MAJOR_BRAND_VERSION_POS
private static final int MAJOR_BRAND_VERSION_LENGTH
private static final int COMPATIBLE_BRAND_LENGTH
public Mp4FtypBox(Mp4BoxHeader header, java.nio.ByteBuffer dataBuffer)
header
- header infodataBuffer
- data of box (doesnt include header data)public void processData() throws CannotReadException
CannotReadException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getMajorBrand()
public int getMajorBrandVersion()
public java.util.List<java.lang.String> getCompatibleBrands()
Copyright © 2005-2013 java.net. All Rights Reserved.