Class DataEntryURLBox

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

public class DataEntryURLBox extends Box
This class is defined to represent a Data Entry URL Box of JPEG JP2 file format. A Data Entry URL Box has a length, and a fixed type of "url ". Its content are a one-byte version, a three-byte flags and a URL pertains to the UUID List box within its UUID Info superbox.
  • Constructor Details

    • DataEntryURLBox

      public DataEntryURLBox(byte[] data)
      Constructs a DataEntryURLBox from its content data.
    • DataEntryURLBox

      public DataEntryURLBox(byte version, byte[] flags, String url)
      Constructs a DataEntryURLBox from its data elements.
    • DataEntryURLBox

      public DataEntryURLBox(Node node) throws IIOInvalidTreeException
      Constructs a DataEntryURLBox from a Node.
      Throws:
      IIOInvalidTreeException
  • Method Details

    • getElementNames

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

      protected void parse(byte[] data)
      Parses the content of this box from its content byte array.
      Overrides:
      parse in class Box
    • getNativeNode

      public IIOMetadataNode getNativeNode()
      Creates an IIOMetadataNode from this data entry URL box. The format of this node is defined in the XML dtd and xsd for the JP2 image file.
      Overrides:
      getNativeNode in class Box
    • getVersion

      public byte getVersion()
      Returns the Version data element.
    • getFlags

      public byte[] getFlags()
      Returns the Flags data element.
    • getURL

      public String getURL()
      Returns the URL data element.
    • compose

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