blockBytes, rb, rootJidBytes
Constructor and Description |
---|
LA32Block() |
Modifier and Type | Method and Description |
---|---|
int |
headerLength()
The length of the header which prefaces the actual data on disk.
|
protected void |
saveHeader(org.agilewiki.jid.AppendableBytes ab,
int l)
Provides the raw header information to be written to disk.
|
int |
setHeaderBytes(byte[] bytes)
Provides the raw header information read from disk.
|
boolean |
setRootJidBytes(byte[] bytesRead)
Provides the data read from disk after the header.
|
getCurrentPosition, getFileName, getRootJid, getRootJid, getTimestamp, isEmpty, serialize, setCurrentPosition, setFileName, setRootJid, setTimestamp
public int headerLength()
headerLength
in interface Block
headerLength
in class LBlock
protected void saveHeader(org.agilewiki.jid.AppendableBytes ab, int l) throws Exception
saveHeader
in class LBlock
ab
- Append the data to this.l
- The length of the data.Exception
public int setHeaderBytes(byte[] bytes)
setHeaderBytes
in interface Block
setHeaderBytes
in class LBlock
bytes
- The header bytes read from disk.public boolean setRootJidBytes(byte[] bytesRead)
setRootJidBytes
in interface Block
setRootJidBytes
in class LBlock
bytesRead
- The data following the header on disk.Copyright © 2013. All Rights Reserved.