edu.harvard.hul.ois.jhove.module.jpeg2000
Class CodestreamHeaderBox
java.lang.Object
edu.harvard.hul.ois.jhove.module.jpeg2000.BoxHolder
edu.harvard.hul.ois.jhove.module.jpeg2000.JP2Box
edu.harvard.hul.ois.jhove.module.jpeg2000.CodestreamHeaderBox
- All Implemented Interfaces:
- java.util.Iterator<java.lang.Object>
public class CodestreamHeaderBox
- extends JP2Box
Codestream Header box.
This is similar to a JP2HeaderBox, and has many of the same subboxes,
but applies to a single codestream.
See ISO/IEC FCD15444-2: 2000, L.9.3
- Author:
- Gary McGath
Method Summary |
protected Codestream |
getCodestream()
Returns the associated Codestream object. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodestreamHeaderBox
public CodestreamHeaderBox(java.io.RandomAccessFile raf,
BoxHolder parent)
- Constructor with superbox.
- Parameters:
parent
- Must be null or the TopLevelBoxHolder
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
getCodestream
protected Codestream getCodestream()
- Returns the associated Codestream object.
getSelfPropName
protected java.lang.String getSelfPropName()
- Returns the name of the Box.
- Overrides:
getSelfPropName
in class JP2Box