com.mindbright.util
Class NSReg

java.lang.Object
  extended bycom.mindbright.util.NSReg

public class NSReg
extends java.lang.Object


Nested Class Summary
 class NSReg.Entry
           
 
Field Summary
static int HDR_SIZE
           
static int MAGIC_NUMBER
           
static int MAJOR_VERSION
           
static int MINOR_VERSION
           
static int REGTYPE_DELETED
           
static int REGTYPE_ENTRY
           
static int REGTYPE_ENTRY_BYTES
           
static int REGTYPE_ENTRY_FILE
           
static int REGTYPE_ENTRY_INT32_ARRAY
           
static int REGTYPE_ENTRY_STRING_UTF
           
static int REGTYPE_KEY
           
 
Constructor Summary
NSReg()
           
 
Method Summary
 NSReg.Entry get(java.lang.String key)
           
 void load(java.lang.String fileName)
           
static void main(java.lang.String[] argv)
           
static void printSubTree(NSReg.Entry node)
           
 void printTree()
           
 int readInt()
           
 int readShort()
           
 NSReg.Entry root()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAGIC_NUMBER

public static final int MAGIC_NUMBER
See Also:
Constant Field Values

MAJOR_VERSION

public static final int MAJOR_VERSION
See Also:
Constant Field Values

MINOR_VERSION

public static final int MINOR_VERSION
See Also:
Constant Field Values

HDR_SIZE

public static final int HDR_SIZE
See Also:
Constant Field Values

REGTYPE_KEY

public static final int REGTYPE_KEY
See Also:
Constant Field Values

REGTYPE_DELETED

public static final int REGTYPE_DELETED
See Also:
Constant Field Values

REGTYPE_ENTRY

public static final int REGTYPE_ENTRY
See Also:
Constant Field Values

REGTYPE_ENTRY_STRING_UTF

public static final int REGTYPE_ENTRY_STRING_UTF
See Also:
Constant Field Values

REGTYPE_ENTRY_INT32_ARRAY

public static final int REGTYPE_ENTRY_INT32_ARRAY
See Also:
Constant Field Values

REGTYPE_ENTRY_BYTES

public static final int REGTYPE_ENTRY_BYTES
See Also:
Constant Field Values

REGTYPE_ENTRY_FILE

public static final int REGTYPE_ENTRY_FILE
See Also:
Constant Field Values
Constructor Detail

NSReg

public NSReg()
Method Detail

readShort

public final int readShort()
                    throws java.io.IOException
Throws:
java.io.IOException

readInt

public final int readInt()
                  throws java.io.IOException
Throws:
java.io.IOException

load

public void load(java.lang.String fileName)
          throws java.io.IOException
Throws:
java.io.IOException

root

public NSReg.Entry root()
                 throws java.io.IOException
Throws:
java.io.IOException

get

public NSReg.Entry get(java.lang.String key)
                throws java.io.IOException
Throws:
java.io.IOException

printTree

public void printTree()
               throws java.io.IOException
Throws:
java.io.IOException

printSubTree

public static void printSubTree(NSReg.Entry node)
                         throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] argv)