blockBytes, rb, rootJidBytes
Constructor and Description |
---|
LTA32Block() |
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.
|
getTimestamp, setRootJid, setTimestamp
getCurrentPosition, getFileName, getRootJid, getRootJid, isEmpty, serialize, setCurrentPosition, setFileName
public int headerLength()
headerLength
in interface Block
headerLength
in class LTBlock
protected void saveHeader(org.agilewiki.jid.AppendableBytes ab, int l) throws Exception
saveHeader
in class LTBlock
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 LTBlock
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.