org.objectweb.dream.protocol
Class Util

java.lang.Object
  extended by org.objectweb.dream.protocol.Util

public final class Util
extends Object

Utility methods.


Method Summary
static ExportIdentifier[] readExportIdentifierArray(ObjectInput in)
          Reads and returns an array of export identifier from an ObjectInput object.
static void writeExportIdentifierArray(ObjectOutput out, ExportIdentifier[] array)
          Writes an array of export identifier on an ObjectOutput object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readExportIdentifierArray

public static ExportIdentifier[] readExportIdentifierArray(ObjectInput in)
                                                    throws IOException,
                                                           ClassNotFoundException
Reads and returns an array of export identifier from an ObjectInput object.

Parameters:
in - the input from which to read.
Returns:
an array of export identifier.
Throws:
IOException - if an error occurs.
ClassNotFoundException - if the class of read objects is not found.

writeExportIdentifierArray

public static void writeExportIdentifierArray(ObjectOutput out,
                                              ExportIdentifier[] array)
                                       throws IOException
Writes an array of export identifier on an ObjectOutput object.

Parameters:
out - the output on which to write.
array - the array of export identifier to write (cannot be null).
Throws:
IOException - if an error occurs.


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.