edu.harvard.hul.ois.jhove.module.jpeg2000
Class UUIDInfoBox
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.UUIDInfoBox
- All Implemented Interfaces:
- java.util.Iterator<java.lang.Object>
public class UUIDInfoBox
- extends JP2Box
UUID info box.
See I.7.3 in ISO/IEC 15444-1:2000
- Author:
- Gary McGath
Constructor Summary |
UUIDInfoBox(java.io.RandomAccessFile raf,
BoxHolder parent)
Constructor with superbox. |
Method Summary |
protected java.lang.String |
getSelfPropName()
Returns the name of the Box. |
boolean |
readBox()
Reads the box, putting appropriate information in
the RepInfo object. |
protected void |
setURL(java.lang.String url)
Sets the URL string. |
protected void |
setUUIDList(byte[][] uuids)
Sets the UUID list. |
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 |
UUIDInfoBox
public UUIDInfoBox(java.io.RandomAccessFile raf,
BoxHolder parent)
- Constructor with superbox.
- Parameters:
parent
- parent superbox of this box
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
setURL
protected void setURL(java.lang.String url)
- Sets the URL string. This will be called from
DataEntryURLBox.
setUUIDList
protected void setUUIDList(byte[][] uuids)
- Sets the UUID list. The argument is an array
of byte arrays of length 16, or schematically:
byte[][16]
.
getSelfPropName
protected java.lang.String getSelfPropName()
- Returns the name of the Box.
- Overrides:
getSelfPropName
in class JP2Box