| java.lang.Object com.sun.media.imageioimpl.plugins.jpeg2000.Box com.sun.media.imageioimpl.plugins.jpeg2000.FileTypeBox
FileTypeBox | public class FileTypeBox extends Box (Code) | | This class is defined to represent a File Type Box of JPEG JP2 file
format. A File Type Box has a length, and a fixed type of "ftyp".
The content of a file type box contains the brand ("jp2 " for JP2 file",
the minor version (0 for JP2 file format), and a compatibility list (one of
which should be "jp2 " if brand is not "jp2 ".)
|
Constructor Summary | |
public | FileTypeBox(int br, int minorVersion, int[] comp) Constructs a FileTypeBox from the provided brand, minor
version and compatibility list. | public | FileTypeBox(byte[] data) Constructs a FileTypeBox from the provided byte array. | public | FileTypeBox(Node node) Constructs a FileTypeBox from
org.w3c.dom.Node . |
Method Summary | |
protected void | compose() | public int | getBrand() Returns the brand of this file type box. | public int[] | getCompatibilityList() Returns the compatibilty list of this file type box. | public static String[] | getElementNames() This method will be called by the getNativeNodeForSimpleBox of the
class Box to get the element names. | public int | getMinorVersion() Returns the minor version of this file type box. | public IIOMetadataNode | getNativeNode() Creates an IIOMetadataNode from this file type box. | protected void | parse(byte[] data) |
FileTypeBox | public FileTypeBox(int br, int minorVersion, int[] comp)(Code) | | Constructs a FileTypeBox from the provided brand, minor
version and compatibility list.
|
FileTypeBox | public FileTypeBox(byte[] data)(Code) | | Constructs a FileTypeBox from the provided byte array.
|
compose | protected void compose()(Code) | | |
getBrand | public int getBrand()(Code) | | Returns the brand of this file type box.
|
getCompatibilityList | public int[] getCompatibilityList()(Code) | | Returns the compatibilty list of this file type box.
|
getElementNames | public static String[] getElementNames()(Code) | | This method will be called by the getNativeNodeForSimpleBox of the
class Box to get the element names.
|
getMinorVersion | public int getMinorVersion()(Code) | | Returns the minor version of this file type box.
|
getNativeNode | public IIOMetadataNode getNativeNode()(Code) | | Creates an IIOMetadataNode from this file type box.
The format of this node is defined in the XML dtd and xsd
for the JP2 image file.
|
parse | protected void parse(byte[] data)(Code) | | |
|
|