com.mindbright.util
Class NSReg
java.lang.Object
|
+--com.mindbright.util.NSReg
- public class NSReg
- extends java.lang.Object
|
Constructor Summary |
NSReg()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
NSReg
public NSReg()
readShort
public final int readShort()
throws java.io.IOException
java.io.IOException
readInt
public final int readInt()
throws java.io.IOException
java.io.IOException
load
public void load(java.lang.String fileName)
throws java.io.IOException
java.io.IOException
root
public NSReg.Entry root()
throws java.io.IOException
java.io.IOException
get
public NSReg.Entry get(java.lang.String key)
throws java.io.IOException
java.io.IOException
printTree
public void printTree()
throws java.io.IOException
java.io.IOException
printSubTree
public static void printSubTree(NSReg.Entry node)
throws java.io.IOException
java.io.IOException
main
public static void main(java.lang.String[] argv)