public class ChunkHeader extends Object
| Constructor and Description |
|---|
ChunkHeader(ModuleBase module,
RepInfo info)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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(DataInputStream dstrm)
Reads the header of a chunk.
|
void |
setID(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(DataInputStream dstrm) throws IOException
IOExceptionpublic void setID(String id)
public String getID()
public long getSize()
Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.