next up previous contents
Next: FragmentBuffer, DefragmentBuffer Up: Util Previous: Util

   
ObjectToByteBuffer, ObjectFromByteBuffer

The first method takes an object as argument and serializes it into a byte buffer (the object has to be serializable). The byte array is then returned. This method is often used to for example serialize method calls (see 3.4.2) or other objects into the byte buffer of a message. The second method returns a reconstructed object from a buffer. Both methods throw an exception if the object cannot be serialized or reconstructed.




1999-12-13