public class FileTypeBox extends Box
Modifier and Type | Field and Description |
---|---|
private int |
brand
The element values.
|
private int[] |
compatibility |
private static String[] |
elementNames
Cache the element names for this box's xml definition
|
private int |
minorVersion |
data, extraLength, length, type
Constructor and Description |
---|
FileTypeBox(byte[] data)
Constructs a
FileTypeBox from the provided byte array. |
FileTypeBox(int br,
int minorVersion,
int[] comp)
Constructs a
FileTypeBox from the provided brand, minor
version and compatibility list. |
FileTypeBox(Node node)
Constructs a
FileTypeBox from
org.w3c.dom.Node . |
Modifier and Type | Method and Description |
---|---|
protected void |
compose()
Composes the content byte array from the data elements.
|
int |
getBrand()
Returns the brand of this file type box.
|
int[] |
getCompatibilityList()
Returns the compatibilty list of this file type box.
|
static String[] |
getElementNames()
This method will be called by the getNativeNodeForSimpleBox of the
class Box to get the element names.
|
int |
getMinorVersion()
Returns the minor version of this file type box.
|
IIOMetadataNode |
getNativeNode()
Creates an
IIOMetadataNode from this file type box. |
protected void |
parse(byte[] data)
Parses the data elements from the byte array.
|
copyInt, createBox, getAttribute, getBoxClass, getByteArrayElementValue, getByteElementValue, getContent, getExtraLength, getIntArrayElementValue, getIntElementValue, getLength, getName, getNativeNodeForSimpleBox, getShortElementValue, getStringElementValue, getType, getTypeByName, getTypeInt, getTypeString, parseByteArray, parseIntArray, read, setContent, setDefaultAttributes, setExtraLength, setLength, write
private static String[] elementNames
private int brand
private int minorVersion
private int[] compatibility
public FileTypeBox(int br, int minorVersion, int[] comp)
FileTypeBox
from the provided brand, minor
version and compatibility list.public FileTypeBox(byte[] data)
FileTypeBox
from the provided byte array.public FileTypeBox(Node node) throws IIOInvalidTreeException
FileTypeBox
from
org.w3c.dom.Node
.IIOInvalidTreeException
public static String[] getElementNames()
public int getBrand()
public int getMinorVersion()
public int[] getCompatibilityList()
public IIOMetadataNode getNativeNode()
IIOMetadataNode
from this file type box.
The format of this node is defined in the XML dtd and xsd
for the JP2 image file.getNativeNode
in class Box
protected void parse(byte[] data)
Box
Copyright © 2017 Open Microscopy Environment