org.sapia.ubik.mcast
Class Util

java.lang.Object
  extended by org.sapia.ubik.mcast.Util

public class Util
extends java.lang.Object

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Constructor Summary
Util()
           
 
Method Summary
static java.lang.Object fromDatagram(java.net.DatagramPacket pack)
           
static int getSizeInBytes(java.lang.Object o)
           
static byte[] toBytes(java.lang.Object o, int bufsize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

fromDatagram

public static java.lang.Object fromDatagram(java.net.DatagramPacket pack)
                                     throws java.io.IOException,
                                            java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

toBytes

public static byte[] toBytes(java.lang.Object o,
                             int bufsize)
                      throws java.io.IOException
Throws:
java.io.IOException

getSizeInBytes

public static int getSizeInBytes(java.lang.Object o)
                          throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2010 Sapia OSS. All Rights Reserved.