public class BoxHeader extends Object
Constructor and Description |
---|
BoxHeader(Jpeg2000Module mod,
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.
|
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, DataInputStream dstrm)
mod
- The Module which uses this objectdstrm
- The DataInputStream reading data for the Modulepublic void readHeader() throws IOException
IOException
public long getLength()
public long getHeaderLength()
readHeader()
.public long getDataLength()
getLength() - getHeaderLength()
.
If getLength()
would return 0, this value is
meaningless.public String getType()
Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.