public interface Block
Modifier and Type | Method and Description |
---|---|
long |
getCurrentPosition()
Returns the file position.
|
String |
getFileName()
Returns the file name.
|
org.agilewiki.jid.scalar.vlens.actor.RootJid |
getRootJid()
Get an existing RootJid.
|
org.agilewiki.jid.scalar.vlens.actor.RootJid |
getRootJid(org.agilewiki.jactor.Mailbox mailbox,
org.agilewiki.jactor.Actor parent)
Return the RootJid, deserializing it as needed..
|
long |
getTimestamp()
Returns the timestamp.
|
int |
headerLength()
The length of the header which prefaces the actual data on disk.
|
boolean |
isEmpty()
Indicates the absence of a root jic.
|
byte[] |
serialize()
Serializes the header and the assigned RootJid.
|
void |
setCurrentPosition(long position)
Assigns the file's current position.
|
void |
setFileName(String fileName)
Assigns the file's name.
|
int |
setHeaderBytes(byte[] bytes)
Provides the raw header information read from disk.
|
void |
setRootJid(org.agilewiki.jid.scalar.vlens.actor.RootJid rootJid)
Reset the block and assign the RootJid.
|
boolean |
setRootJidBytes(byte[] bytes)
Provides the data read from disk after the header.
|
void |
setTimestamp(long timestamp)
Assigns the timestamp.
|
void setRootJid(org.agilewiki.jid.scalar.vlens.actor.RootJid rootJid)
rootJid
- The RootJid to be assigned.byte[] serialize() throws Exception
Exception
int headerLength()
String getFileName()
void setFileName(String fileName)
long getCurrentPosition()
void setCurrentPosition(long position)
int setHeaderBytes(byte[] bytes)
bytes
- The header bytes read from disk.boolean setRootJidBytes(byte[] bytes)
bytes
- The data following the header on disk.org.agilewiki.jid.scalar.vlens.actor.RootJid getRootJid() throws Exception
Exception
- An exception is thrown when there is no RootJid.org.agilewiki.jid.scalar.vlens.actor.RootJid getRootJid(org.agilewiki.jactor.Mailbox mailbox, org.agilewiki.jactor.Actor parent) throws Exception
mailbox
- The mailbox.parent
- The parent.Exception
boolean isEmpty()
long getTimestamp()
void setTimestamp(long timestamp)
timestamp
- The timestamp.Copyright © 2013. All Rights Reserved.