SandMark version 2.0


sandmark.util
Class StringInt

java.lang.Object
  |
  +--sandmark.util.StringInt

public class StringInt
extends java.lang.Object

The sandmark.util.StringInt class encodes strings as BigIntegers. Strings having the form of non-negative integers are encoded with minimal overhead.


Constructor Summary
StringInt()
           
 
Method Summary
static java.lang.String decode(java.math.BigInteger n)
          Decodes a BigInteger to produce the corresponding string.
static java.math.BigInteger encode(java.lang.String s)
          Encodes a string to produce a BigInteger.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringInt

public StringInt()
Method Detail

encode

public static java.math.BigInteger encode(java.lang.String s)
Encodes a string to produce a BigInteger.


decode

public static java.lang.String decode(java.math.BigInteger n)
Decodes a BigInteger to produce the corresponding string.


main

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

SandMark version 2.0

Mon Jun 17 12:30:47 MST 2002