Class UUIDListBox

java.lang.Object
com.sun.media.imageioimpl.plugins.jpeg2000.Box
com.sun.media.imageioimpl.plugins.jpeg2000.UUIDListBox

public class UUIDListBox extends Box
This class is defined to represent a UUID list Box of JPEG JP2 file format. This type of box has a length, a type of "ulst". Its contents include the number of UUID entry and a list of 16-byte UUIDs.
  • Constructor Details

    • UUIDListBox

      public UUIDListBox(short num, byte[][] uuids)
      Constructs a UUIDListBox from the provided uuid number and uuids. The provided uuids should have a size of 16; otherwise, Exception may thrown in later the process. The provided number should consistent with the size of the uuid array.
    • UUIDListBox

      public UUIDListBox(byte[] data)
      Constructs a UUIDListBox from the provided content data array.
    • UUIDListBox

      public UUIDListBox(Node node) throws IIOInvalidTreeException
      Constructs a UUIDListBox based on the provided org.w3c.dom.Node.
      Throws:
      IIOInvalidTreeException
  • Method Details

    • parse

      protected void parse(byte[] data)
      Parses the data elements from the provided content data array.
      Overrides:
      parse in class Box
    • getNativeNode

      public IIOMetadataNode getNativeNode()
      Creates an IIOMetadataNode from this UUID list 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