Class ComponentMappingBox

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

public class ComponentMappingBox extends Box
This class is defined to represent a Color Specification Box of JPEG JP2 file format. A Channel Definition Box has a length, and a fixed type of "cmap". This box exists if and only is a PaletteBox exists. Its content defines the type LUT output components and their mapping to the color component.
  • Constructor Details

    • ComponentMappingBox

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

      public ComponentMappingBox(short[] comp, byte[] t, byte[] m)
      Constructs a ComponentMappingBox from the provided component mapping.
    • ComponentMappingBox

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

    • parse

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

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

      public short[] getComponent()
    • getComponentType

      public byte[] getComponentType()
    • getComponentAssociation

      public byte[] getComponentAssociation()
    • compose

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