org.erights.e.meta.java.math
Class BigIntegerMakerSugar
java.lang.Object
|
+--org.erights.e.meta.java.math.BigIntegerMakerSugar
- public class BigIntegerMakerSugar
- extends Object
Untamed: A sweetener defining extra messages that may be e-sent to the integer
maker. The base-64 conversion code is adapted from the old Base64.java.
- Author:
- Mark S. Miller, Bill Frantz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASE64
private static final String BASE64
BigIntegerMakerSugar
private BigIntegerMakerSugar()
- prevent instantiation
fromString64
public static BigInteger fromString64(String s)
throws NumberFormatException
- Enabled: Convert a base 64 string to an integer.
- Parameters:
s
- The string in base 64 notation, with an optional leading
'-', in the format produced by
BigIntegerSugar.toString64(BigInteger)
.
- Returns:
- the integer.
- Throws:
NumberFormatException
- if there is an invalid base 64
character in the input string.
comments?