jdsl.core.ref
Interface ToByteArray

All Known Implementing Classes:
BigIntegerToByteArray

public interface ToByteArray

Converts an object to a byte array

Version:
$Id: ToByteArray.java,v 1.1 2000/12/04 05:26:31 bg Exp $
Author:
Benety Goh (bg@cs.brown.edu)

Method Summary
 byte[] convert(java.lang.Object o)
           
 

Method Detail

convert

public byte[] convert(java.lang.Object o)
               throws java.lang.ClassCastException
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.