edu.harvard.hul.ois.jhove.module.jpeg2000
Class ComposLayerHdrBox

java.lang.Object
  extended by edu.harvard.hul.ois.jhove.module.jpeg2000.BoxHolder
      extended by edu.harvard.hul.ois.jhove.module.jpeg2000.JP2Box
          extended by edu.harvard.hul.ois.jhove.module.jpeg2000.ComposLayerHdrBox
All Implemented Interfaces:
java.util.Iterator<java.lang.Object>

public class ComposLayerHdrBox
extends JP2Box

Compositing Layer Header Box (JPX superbox). See ISO/IEC FCD15444-2: 2000, L.9.4

Author:
Gary McGath

Field Summary
 
Fields inherited from class edu.harvard.hul.ois.jhove.module.jpeg2000.JP2Box
_bytesRead, associations, DESCRIPTION_NAME, noJP2Hdr, startBytesRead
 
Fields inherited from class edu.harvard.hul.ois.jhove.module.jpeg2000.BoxHolder
_boxHeader, _dstrm, _module, _parentBox, _raf, _repInfo, bytesLeft, filePos, hasBoxes
 
Constructor Summary
ComposLayerHdrBox(java.io.RandomAccessFile raf, BoxHolder parent)
          Constructor with superbox.
 
Method Summary
protected  void addChannelDef(Property p)
          Add channel definition property.
protected  void addCodestreamReg(Property p)
          Add codestream registration property.
protected  void addColorSpec(Property p)
          Add a color specification property.
protected  void addOpacity(Property p)
          Add an opacity property.
protected  java.lang.String getSelfPropName()
          Returns the name of the Box.
 boolean readBox()
          Reads the box, putting appropriate information in the RepInfo object.
 
Methods inherited from class edu.harvard.hul.ois.jhove.module.jpeg2000.JP2Box
addAssociation, boxMaker, emptyBox, finalizeBytesRead, getBytesRead, getLength, getSelfPropDesc, init, initBytesRead, makeAssocProperty, selfDescProperty, setBoxHeader, setDataInputStream, setModule, setRandomAccessFile, setRepInfo, skipBox, wrongBoxContext, wrongBoxSize
 
Methods inherited from class edu.harvard.hul.ois.jhove.module.jpeg2000.BoxHolder
getFilePos, hasNext, next, remove, superboxOverrun, superboxUnderrun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComposLayerHdrBox

public ComposLayerHdrBox(java.io.RandomAccessFile raf,
                         BoxHolder parent)
Constructor with superbox.

Parameters:
parent - parent superbox of this box
Method Detail

readBox

public boolean readBox()
                throws java.io.IOException
Reads the box, putting appropriate information in the RepInfo object. setModule, setBoxHeader, setRepInfo and setDataInputStream must be called before readBox is called. readBox must completely consume the box, so that the next byte to be read by the DataInputStream is the FF byte of the next Box.

Specified by:
readBox in class JP2Box
Throws:
java.io.IOException

addColorSpec

protected void addColorSpec(Property p)
Add a color specification property.


addOpacity

protected void addOpacity(Property p)
Add an opacity property.


addChannelDef

protected void addChannelDef(Property p)
Add channel definition property.


addCodestreamReg

protected void addCodestreamReg(Property p)
Add codestream registration property.


getSelfPropName

protected java.lang.String getSelfPropName()
Returns the name of the Box.

Overrides:
getSelfPropName in class JP2Box