Class java.math.BigInteger
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.math.BigInteger

java.lang.Object
   |
   +----java.math.BigNum
           |
           +----java.math.BigInteger

public class BigInteger
extends BigNum
A class implementing arbitrary length integers.

Copyright (C) 1995, 1996 Systemics Ltd (http://www.systemics.com/) All rights reserved.


Constructor Index

 o BigInteger()
 o BigInteger(BigInteger)
 o BigInteger(String)
 o BigInteger(byte[])

Method Index

 o clone()
Creates a clone of the object.
 o cmp(BigInteger)
 o copy(Object)
 o dec()
 o finalize()
Code to perform when this object is garbage collected.
 o fromByteArray(byte[])
 o fromString(String)
 o inc()
 o modExp(BigInteger, BigInteger)
 o mul(BigInteger, BigInteger)
 o newBuffer(int)
An internal function to create a buffer big enough in which to store a number.
 o numberOfBits()
 o toByteArray()
Convert a number into a byte array
 o toString()
Returns a String that represents the value of this Object.

Constructors

 o BigInteger
  public BigInteger()
 o BigInteger
  public BigInteger(BigInteger from)
 o BigInteger
  public BigInteger(String hexString)
 o BigInteger
  public BigInteger(byte buffer[])

Methods

 o clone
  public Object clone()
Creates a clone of the object.
Overrides:
clone in class BigNum
 o copy
  public void copy(Object src)
Overrides:
copy in class BigNum
 o fromString
  public void fromString(String inHex)
 o toString
  public String toString()
Returns a String that represents the value of this Object.
Overrides:
toString in class BigNum
 o finalize
  protected void finalize()
Code to perform when this object is garbage collected.
Overrides:
finalize in class BigNum
 o modExp
  public BigInteger modExp(BigInteger power,
                           BigInteger modulo)
 o mul
  public BigInteger mul(BigInteger a,
                        BigInteger b)
 o cmp
  public int cmp(BigInteger a)
 o inc
  public BigInteger inc()
 o dec
  public BigInteger dec()
 o newBuffer
  protected final static byte[] newBuffer(int bitLen)
An internal function to create a buffer big enough in which to store a number.
Parameters:
bitLen - The number of bits in the number.
Returns:
a buffer in which to store a number.
 o toByteArray
  public byte[] toByteArray()
Convert a number into a byte array
Returns:
a byte array
 o fromByteArray
  public void fromByteArray(byte buf[])
 o numberOfBits
  public int numberOfBits()

All Packages  Class Hierarchy  This Package  Previous  Next  Index