Class XMLBox


  • public class XMLBox
    extends Box
    This class is defined to represent a XML box of JPEG JP2 file format. This type of box has a length, a type of "xml ". Its content is a text string of a XML instance.
    • Constructor Detail

      • XMLBox

        public XMLBox​(byte[] data)
        Create a Box from its content.
      • XMLBox

        public XMLBox​(org.w3c.dom.Node node)
               throws javax.imageio.metadata.IIOInvalidTreeException
        Constructs a UUIDListBox based on the provided org.w3c.dom.Node.
        Throws:
        javax.imageio.metadata.IIOInvalidTreeException
    • Method Detail

      • getElementNames

        public static java.lang.String[] getElementNames()
        This method will be called by the getNativeNodeForSimpleBox of the class Box to get the element names.
      • getNativeNode

        public javax.imageio.metadata.IIOMetadataNode getNativeNode()
        Creates an IIOMetadataNode from this XML box. The format of this node is defined in the XML dtd and xsd for the JP2 image file.
        Overrides:
        getNativeNode in class Box