public class ChunkHeader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
_chunkID |
private long |
_size |
Constructor and Description |
---|
ChunkHeader()
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.RandomAccessFile raf)
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()
module
- The module under which the chunk is being readinfo
- The RepInfo object being used by the modulepublic boolean readHeader(java.io.RandomAccessFile raf) throws java.io.IOException
java.io.IOException
public void setID(java.lang.String id)
public java.lang.String getID()
public long getSize()
Copyright © 2005-2013 java.net. All Rights Reserved.