javax.slee.management
Class VendorExtensionUtils
java.lang.Object
javax.slee.management.VendorExtensionUtils
public class VendorExtensionUtils
- extends java.lang.Object
This class provides serialization and deserialization utility methods used by
classes that implement the VendorExtensions interface.
|
Method Summary |
static java.lang.Object |
readObject(java.io.ObjectInputStream in,
boolean vendorDataDeserializationEnabled)
Read the current object in the input stream from the stream, optionally
deserializing any vendor-specific data in the stream. |
static void |
writeObject(java.io.ObjectOutputStream out,
java.lang.Object vendorData)
Write the current object and vendor-specific data to the output stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VendorExtensionUtils
public VendorExtensionUtils()
writeObject
public static void writeObject(java.io.ObjectOutputStream out,
java.lang.Object vendorData)
throws java.io.IOException
- Write the current object and vendor-specific data to the output stream.
- Parameters:
out - the object output stream that the current object is being written to.vendorData - the optional vendor data to include in the serialization stream.
- Throws:
java.io.IOException - if an I/O error occurs while writing to the output stream.
readObject
public static java.lang.Object readObject(java.io.ObjectInputStream in,
boolean vendorDataDeserializationEnabled)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Read the current object in the input stream from the stream, optionally
deserializing any vendor-specific data in the stream.
- Parameters:
in - the object input stream that the current object is being read from.vendorDataDeserializationEnabled - boolean flag indicating whether or not
any vendor data in the serialization stream should be deserialized also.
- Returns:
- the vendor-specific data, or
null if there isn't any or the
value of the vendorDataDeserializationEnabled parameter was
false.
- Throws:
java.io.IOException - if an I/O error occurs while reading from the input stream.
java.lang.ClassNotFoundException - if a class of the serialized objects could not
be found.
Copyright © 2008. All Rights Reserved.