public class DefaultBox extends JP2Box
_bytesRead, associations, DESCRIPTION_NAME, noJP2Hdr, startBytesRead
_boxHeader, _dstrm, _module, _parentBox, _raf, _repInfo, bytesLeft, filePos, hasBoxes
Constructor and Description |
---|
DefaultBox(java.io.RandomAccessFile raf)
Constructor.
|
DefaultBox(java.io.RandomAccessFile raf,
BoxHolder parent)
Constructor with superbox.
|
Modifier and Type | Method and Description |
---|---|
boolean |
readBox()
Reads the box, putting appropriate information in
the RepInfo object.
|
addAssociation, boxMaker, emptyBox, finalizeBytesRead, getBytesRead, getLength, getSelfPropDesc, getSelfPropName, init, initBytesRead, makeAssocProperty, selfDescProperty, setBoxHeader, setDataInputStream, setModule, setRandomAccessFile, setRepInfo, skipBox, wrongBoxContext, wrongBoxSize
getFilePos, hasNext, next, remove, superboxOverrun, superboxUnderrun
public DefaultBox(java.io.RandomAccessFile raf)
public DefaultBox(java.io.RandomAccessFile raf, BoxHolder parent)
public boolean readBox() throws java.io.IOException
JP2Box
readBox
is called.
Thus, the header of the box must already have been read.
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.
The number of bytes read must be placed in _bytesRead.