|
|||||||||
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.BoxHeader
public class BoxHeader
Encapsulation of a JPEG 2000 box header.
Constructor Summary | |
---|---|
BoxHeader(Jpeg2000Module mod,
java.io.DataInputStream dstrm)
Constructor. |
Method Summary | |
---|---|
long |
getDataLength()
Returns the number of bytes in the Box, not including the header. |
long |
getHeaderLength()
Returns the length of the header. |
long |
getLength()
Returns the box length, which includes the length and type fields. |
java.lang.String |
getType()
Returns the box type. |
void |
readHeader()
Reads 8 bytes from the beginning of the box and parses out the box length and type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BoxHeader(Jpeg2000Module mod, java.io.DataInputStream dstrm)
mod
- The Module which uses this objectdstrm
- The DataInputStream reading data for the ModuleMethod Detail |
---|
public void readHeader() throws java.io.IOException
java.io.IOException
public long getLength()
public long getHeaderLength()
readHeader()
.
public long getDataLength()
getLength() - getHeaderLength()
.
If getLength()
would return 0, this value is
meaningless.
public java.lang.String getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |