Package | Description |
---|---|
casa.io |
Contains classes implementing CASA's agent persistence system.
|
Modifier and Type | Method and Description |
---|---|
protected static FilePosition |
CoreIO.getFilePosition(CASAFile file,
NodePosition nodePos)
convert the supplied node position into a file position
returns null if node not found
|
int |
CASAFile.read(byte[] bytes,
NodePosition pos)
convenience method for reading bytes from a node
|
int |
CASAFile.read(byte[] bytes,
NodePosition nodePos,
int start,
int length)
Read length bytes from the given node position within the file and store them
in the supplied byte array.
|
int |
CASAFile.write(byte[] bytes,
NodePosition pos)
convenience method for writing bytes to a node
|
int |
CASAFile.write(byte[] bytes,
NodePosition nodePos,
int start,
int length)
write bytes to the given node position within the file.
|
Constructor and Description |
---|
CASAInputStream(NodePosition pos,
CASAFile file) |