|
SandMark version 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sandmark.util.StringInt
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 |
public StringInt()
Method Detail |
public static java.math.BigInteger encode(java.lang.String s)
public static java.lang.String decode(java.math.BigInteger n)
public static void main(java.lang.String[] args)
|
SandMark version 3.0 Wed Jan 29 10:30:05 MST 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |