public class ChunkHeader
extends java.lang.Object
Constructor and Description |
---|
ChunkHeader(ModuleBase module,
RepInfo info)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getID()
Returns the chunk type, which is a 4-character code
|
long |
getSize()
Returns the chunk size (excluding the first 8 bytes)
|
boolean |
readHeader(java.io.DataInputStream dstrm)
Reads the header of a chunk.
|
void |
setID(java.lang.String id)
Sets the chunk type, which is a 4-character code, directly.
|
public ChunkHeader(ModuleBase module, RepInfo info)
module
- The module under which the chunk is being readinfo
- The RepInfo object being used by the modulepublic boolean readHeader(java.io.DataInputStream dstrm) throws java.io.IOException
java.io.IOException
public void setID(java.lang.String id)
public java.lang.String getID()
public long getSize()