|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.harvard.hul.ois.jhove.module.jpeg2000.BoxHolder
public class BoxHolder
A BoxHolder is a container for JPEG 2000 boxes.
Field Summary | |
---|---|
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 Summary | |
---|---|
BoxHolder(java.io.RandomAccessFile raf)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public BoxHolder(java.io.RandomAccessFile raf)
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |