This interface provides a mechanism to allow the use of alternate Java Serialization implementations.
The implementation of this interface *must* be thread-safe and must have a no-arg constructor.
| Modifier and Type | Method and Description |
|---|---|
| public ObjectInputStream | Returns: anObjectInputStreamthe source stream from which to read the Object(s)
from source)Creates a new |
| public ObjectOutputStream | Returns: anObjectOutputStreamthe destination of the serialized Object(s) destination)Creates a new |
| createObjectInputStream | back to summary |
|---|---|
| public ObjectInputStream createObjectInputStream(InputStream source) throws IOException Creates a new It's extremely important that the ObjectInputStream
returned by this method extends the serialization implementation's ObjectInputStream
and overrides the
return Class.forName(desc.getName(),true,
Thread.currentThread().getContextClassLoader());
If this step isn't done, there may be problems when deserializing.
| |
| createObjectOutputStream | back to summary |
|---|---|
| public ObjectOutputStream createObjectOutputStream(OutputStream destination) throws IOException Creates a new
| |