|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nlm.nls.lvg.Trie.PersistentListNode
public class PersistentListNode
This class creates an object of persistent list node. It is used as the base class for persistent list node.
History:
| Constructor Summary | |
|---|---|
PersistentListNode()
Create an object of persistent list node (defualt). |
|
PersistentListNode(long address)
Create an object of persistent list node, using an address in a random access file. |
|
PersistentListNode(long address,
long next)
Create an object of persistent list node, using an address and next address in a random access file. |
|
| Method Summary | |
|---|---|
long |
GetAddress()
Get the address of the current persistent node. |
long |
GetNext()
Get the address of the next node for the current persistent node. |
static PersistentListNode |
GetNode(java.io.RandomAccessFile raf,
long address)
Get the current persistent list node from a specified binary file at a specified address. |
static void |
PrintList(java.io.RandomAccessFile raf,
long address)
Print all sub tree (list) for a persistent node at a specific address of a specific binary file. |
void |
ReadData(java.io.RandomAccessFile raf)
Read data from the random access file. |
void |
SetAddress(long address)
Set the address of the current persistent node. |
void |
SetNext(long next)
Set the address of the next node for the current persistent node. |
void |
WriteData(java.io.RandomAccessFile raf)
Write data to the random access file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistentListNode()
public PersistentListNode(long address)
public PersistentListNode(long address,
long next)
| Method Detail |
|---|
public void SetNext(long next)
next - the address of the next node for the current persistent
nodepublic long GetNext()
public void SetAddress(long address)
address - the address of the current persistent nodepublic long GetAddress()
public void WriteData(java.io.RandomAccessFile raf)
throws java.io.IOException
raf - the random access file that data will be written to
java.io.IOException - if problems happen when accessing the random
access file.
public void ReadData(java.io.RandomAccessFile raf)
throws java.io.IOException
raf - the random access file that data will be read from
java.io.IOException - if problems happen when accessing the random
access file.
public static PersistentListNode GetNode(java.io.RandomAccessFile raf,
long address)
throws java.io.IOException
raf - the binary file that the persistent node will be retrieved
fromaddress - the address in the binary file that the persistent
node will be retrieved from
java.io.IOException - if problems happen when accessing the random
access file.
public static void PrintList(java.io.RandomAccessFile raf,
long address)
throws java.io.IOException
raf - the binary file that the persistent node will be printed
outaddress - the address in the binary file that the persistent
node will be printed out
java.io.IOException - if problems happen when accessing the random
access file.
|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||