|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcryptix.util.core.BI
Static methods for processing BigInteger utilitarian tasks.
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.1.1.1 $
| Method Summary | |
|---|---|
static java.lang.String |
dumpString(java.math.BigInteger x)
|
static java.lang.String |
dumpString(java.math.BigInteger x,
java.lang.String m)
Dump a BigInteger as a string, in a format that is easy to read for debugging purposes. |
static java.math.BigInteger |
fromStream(java.io.InputStream is)
Read a BigInteger from a stream in Big Endian format (MSB first) in a manner compatible with toStream. |
static byte[] |
getMagnitude(java.math.BigInteger x)
Return the magnitude bytes of a BigInteger with no leading 0's. |
static void |
toStream(java.math.BigInteger x,
java.io.OutputStream os)
Write a BigInteger to a stream in Big Endian format (MSB first) in a manner compatible with fromStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.math.BigInteger fromStream(java.io.InputStream is)
throws java.io.IOException
toStream.
is - the input stream.
java.io.IOException - if an I/O error occurs.
public static void toStream(java.math.BigInteger x,
java.io.OutputStream os)
throws java.io.IOException
x - A BigInteger to write to the output stream.os - The output stream.
java.io.IOException - If an i/o error occurs.public static byte[] getMagnitude(java.math.BigInteger x)
public static java.lang.String dumpString(java.math.BigInteger x,
java.lang.String m)
x - the BigInteger to dumpm - a string to be prepended to each line
public static java.lang.String dumpString(java.math.BigInteger x)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||