public class BoxHeader
extends java.lang.Object
| Constructor and Description |
|---|
BoxHeader(Jpeg2000Module mod,
java.io.DataInputStream dstrm)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public BoxHeader(Jpeg2000Module mod, java.io.DataInputStream dstrm)
mod - The Module which uses this objectdstrm - The DataInputStream reading data for the Modulepublic void readHeader()
throws java.io.IOException
java.io.IOExceptionpublic 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()