edu.harvard.hul.ois.jhove.module.jpeg2000
Class LabelBox
java.lang.Object
   edu.harvard.hul.ois.jhove.module.jpeg2000.BoxHolder
edu.harvard.hul.ois.jhove.module.jpeg2000.BoxHolder
       edu.harvard.hul.ois.jhove.module.jpeg2000.JP2Box
edu.harvard.hul.ois.jhove.module.jpeg2000.JP2Box
           edu.harvard.hul.ois.jhove.module.jpeg2000.LabelBox
edu.harvard.hul.ois.jhove.module.jpeg2000.LabelBox
- All Implemented Interfaces: 
- java.util.Iterator<java.lang.Object>
- public class LabelBox 
- extends JP2Box
Label box.
 A Label box does nothing in itself; it simply makes its
 label string available for its superbox.
 
 See ISO/IEC FCD15444-2: 2000, L.9.13
- Author:
- Gary McGath
 
 
 
| Constructor Summary | 
| LabelBox(java.io.RandomAccessFile raf,
         BoxHolder parent)Constructor with superbox.
 | 
 
| Method Summary | 
| protected  java.lang.String | getLabel()Returns the label string.
 | 
| protected  Property | getSelfPropDesc()Returns a Property which describes the Box, for use
  by Association boxes and perhaps others.
 | 
| protected  java.lang.String | getSelfPropName()Returns the name of the Box.
 | 
|  boolean | readBox()Reads the box, saving the label text.
 | 
 
| Methods inherited from class edu.harvard.hul.ois.jhove.module.jpeg2000.JP2Box | 
| addAssociation, boxMaker, emptyBox, finalizeBytesRead, getBytesRead, getLength, 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 | 
 
LabelBox
public LabelBox(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, saving the label text.  
  setModule, setBoxHeader,
  setRepInfo and setDataInputStream must be called
  before readBoxis called.readBoxmust completely consume the
  box, so that the next byte to be read by the
  DataInputStream is theFFbyte of the next Box.
 
- 
- Specified by:
- readBoxin class- JP2Box
 
- 
- Throws:
- java.io.IOException
 
getLabel
protected java.lang.String getLabel()
- Returns the label string. Valid only after
  readBox()has been called.
 
- 
 
getSelfPropDesc
protected Property getSelfPropDesc()
- Returns a Property which describes the Box, for use
  by Association boxes and perhaps others.
 
- 
- Overrides:
- getSelfPropDescin class- JP2Box
 
- 
 
getSelfPropName
protected java.lang.String getSelfPropName()
- Returns the name of the Box.
 
- 
- Overrides:
- getSelfPropNamein class- JP2Box
 
-