public class VendorExtensionUtils extends Object
VendorExtensions
interface.Constructor and Description |
---|
VendorExtensionUtils() |
Modifier and Type | Method and Description |
---|---|
static Object |
readObject(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(ObjectOutputStream out,
Object vendorData)
Write the current object and vendor-specific data to the output stream.
|
public static void writeObject(ObjectOutputStream out, Object vendorData) throws IOException
out
- the object output stream that the current object is being written to.vendorData
- the optional vendor data to include in the serialization stream.IOException
- if an I/O error occurs while writing to the output stream.public static Object readObject(ObjectInputStream in, boolean vendorDataDeserializationEnabled) throws IOException, ClassNotFoundException
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.null
if there isn't any or the
value of the vendorDataDeserializationEnabled
parameter was
false
.IOException
- if an I/O error occurs while reading from the input stream.ClassNotFoundException
- if a class of the serialized objects could not
be found.