jdsl.core.ref
Class BigIntegerToByteArray

java.lang.Object
  |
  +--jdsl.core.ref.BigIntegerToByteArray
All Implemented Interfaces:
ToByteArray

public class BigIntegerToByteArray
extends java.lang.Object
implements ToByteArray

Converts a big integer to a byte array.

Version:
$Id: BigIntegerToByteArray.java,v 1.2 2000/12/09 22:56:32 bg Exp $
Author:
Benety Goh (bg@cs.brown.edu)

Constructor Summary
BigIntegerToByteArray()
           
 
Method Summary
 byte[] convert(java.lang.Object o)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BigIntegerToByteArray

public BigIntegerToByteArray()
Method Detail

convert

public byte[] convert(java.lang.Object o)
               throws java.lang.ClassCastException
Specified by:
convert in interface ToByteArray
Following copied from interface: jdsl.core.ref.ToByteArray
Parameters:
o - object to convert.
Returns:
byte array representation of object at this instance.
Throws:
java.lang.ClassCastException - If object was not of expected type.

main

public static void main(java.lang.String[] args)