public class BoxHolder
extends java.lang.Object
implements java.util.Iterator<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
protected BoxHeader |
_boxHeader |
protected java.io.DataInputStream |
_dstrm |
protected Jpeg2000Module |
_module |
protected JP2Box |
_parentBox |
protected java.io.RandomAccessFile |
_raf |
protected RepInfo |
_repInfo |
protected long |
bytesLeft |
protected long |
filePos |
protected boolean |
hasBoxes |
Constructor and Description |
---|
BoxHolder(java.io.RandomAccessFile raf)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected long |
getFilePos()
Returns the file position.
|
protected java.lang.String |
getSelfPropName()
Returns the name of the BoxHolder.
|
boolean |
hasNext()
Checks if any more subboxes are available.
|
java.lang.Object |
next() |
void |
remove()
Always throws UnsupportedOperationException.
|
protected void |
superboxOverrun()
Utility error reporting function for a subbox overrunning
its superbox.
|
protected void |
superboxUnderrun()
Utility error reporting function for a subbox underrunning
its superbox.
|
protected Jpeg2000Module _module
protected JP2Box _parentBox
protected java.io.RandomAccessFile _raf
protected java.io.DataInputStream _dstrm
protected BoxHeader _boxHeader
protected RepInfo _repInfo
protected long bytesLeft
protected long filePos
protected boolean hasBoxes
protected long getFilePos()
public boolean hasNext()
hasNext
to avoid reading overruns, and then
test the value returned by next
for nullity.hasNext
in interface java.util.Iterator<java.lang.Object>
public java.lang.Object next()
next
in interface java.util.Iterator<java.lang.Object>
public void remove() throws java.lang.UnsupportedOperationException
remove
in interface java.util.Iterator<java.lang.Object>
java.lang.UnsupportedOperationException
protected void superboxOverrun()
false
.protected void superboxUnderrun()
false
.protected java.lang.String getSelfPropName()