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

Field Summary
private static String BASE64
           
 
Constructor Summary
private BigIntegerMakerSugar()
          prevent instantiation
 
Method Summary
static BigInteger fromString64(String s)
          Enabled: Convert a base 64 string to an integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE64

private static final String BASE64
Constructor Detail

BigIntegerMakerSugar

private BigIntegerMakerSugar()
prevent instantiation

Method Detail

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?