cryptix.util.core
public class BI extends Object
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.1.1.1 $
Since: Cryptix 2.2.2
Method Summary | |
---|---|
static String | dumpString(BigInteger x, String m)
Dump a BigInteger as a string, in a format that is easy to read for
debugging purposes. |
static String | dumpString(BigInteger x) |
static BigInteger | fromStream(InputStream is)
Read a BigInteger from a stream in Big Endian format (MSB first)
in a manner compatible with toStream .
|
static byte[] | getMagnitude(BigInteger x)
Return the magnitude bytes of a BigInteger with no leading 0's.
|
static void | toStream(BigInteger x, OutputStream os)
Write a BigInteger to a stream in Big Endian format (MSB first)
in a manner compatible with fromStream.
|
Parameters: x the BigInteger to dump m a string to be prepended to each line
Returns: a String containing the dump
toStream
.
Parameters: is the input stream.
Returns: a positive BigInteger read from the input stream in Big Endian format (MSB first).
Throws: IOException if an I/O error occurs.
Returns: the magnitude bytes of a BigInteger with no leading 0's.
Parameters: x A BigInteger to write to the output stream. os The output stream.
Throws: IOException If an i/o error occurs.