net.sourceforge.neurosdbm.db
Class Rule

java.lang.Object
  extended bynet.sourceforge.neurosdbm.db.Rule

class Rule
extends java.lang.Object


Field Summary
private  WordString filename
           
private  DisplayData name
           
private  WordPointerToWordString ptrToFilename
           
private  WordPointerToDisplayData ptrToName
           
private  int wordLength
           
 
Constructor Summary
(package private) Rule(java.nio.ByteBuffer bytes, int wordOffset)
           
(package private) Rule(DisplayData name, WordString filename)
           
(package private) Rule(WordPointerToDisplayData ptrToName, WordPointerToWordString ptrToFilename, DisplayData name, WordString filename)
           
 
Method Summary
(package private)  int getDataLength()
           
(package private)  WordString getFilename()
           
(package private)  DisplayData getName()
           
(package private)  int getWordLength()
           
(package private)  void setPointers(long wordOffset)
          Sets the pointers of the rules based on computated lengths of the MDB header.
 java.lang.String toString()
           
(package private)  void writeData(NIOFile file)
           
(package private)  void writePtrs(NIOFile file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ptrToName

private WordPointerToDisplayData ptrToName

ptrToFilename

private WordPointerToWordString ptrToFilename

name

private DisplayData name

filename

private WordString filename

wordLength

private int wordLength
Constructor Detail

Rule

Rule(java.nio.ByteBuffer bytes,
     int wordOffset)

Rule

Rule(WordPointerToDisplayData ptrToName,
     WordPointerToWordString ptrToFilename,
     DisplayData name,
     WordString filename)

Rule

Rule(DisplayData name,
     WordString filename)
Method Detail

getWordLength

int getWordLength()

setPointers

void setPointers(long wordOffset)
Sets the pointers of the rules based on computated lengths of the MDB header.

Parameters:
wordOffset - The value of the ptrToName in words

getDataLength

int getDataLength()

getName

DisplayData getName()

getFilename

WordString getFilename()

writePtrs

void writePtrs(NIOFile file)
         throws java.io.IOException
Throws:
java.io.IOException

writeData

void writeData(NIOFile file)
         throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()


Copyright © 2004 NeurosDBM Dev Team All Rights Reserved.