Class SignatureBox


  • public class SignatureBox
    extends Box
    This class is defined to represent a Signature Box of JPEG JP2 file format. This type of box has a fixed length of 12, a type of "jP " and a four byte content of 0x0D0A870A, which is used to detects of the common file transmission errors which substitutes with or vice versa.
    • Constructor Detail

      • SignatureBox

        public SignatureBox()
        Constructs a SignatureBox.
      • SignatureBox

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

        public SignatureBox​(byte[] data)
                     throws javax.imageio.metadata.IIOInvalidTreeException
        Constructs a SignatureBox based on the provided byte array.
        Throws:
        javax.imageio.metadata.IIOInvalidTreeException
    • Method Detail

      • getNativeNode

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

        protected void compose()
        Description copied from class: Box
        Composes the content byte array from the data elements.
        Overrides:
        compose in class Box