private static final class SerializationProviderFactory.JavaSerializationProvider extends Object implements SerializationProvider
An implementation of SerializationProvider
which
uses standard Java serialization.
Modifier | Constructor and Description |
---|---|
private |
JavaSerializationProvider() |
Modifier and Type | Method and Description |
---|---|
ObjectInputStream |
createObjectInputStream(InputStream source)
Creates a new
ObjectInputStream wrapping the specified
source . |
ObjectOutputStream |
createObjectOutputStream(OutputStream destination)
Creates a new
ObjectOutputStream wrapping the
specified destination . |
public ObjectOutputStream createObjectOutputStream(OutputStream destination) throws IOException
Creates a new ObjectOutputStream
wrapping the
specified destination
.
createObjectOutputStream
in interface SerializationProvider
destination
- the destination of the serialized Object(s)ObjectOutputStream
IOException
- if an error occurs when creating the output streampublic ObjectInputStream createObjectInputStream(InputStream source) throws IOException
Creates a new ObjectInputStream
wrapping the specified
source
.
createObjectInputStream
in interface SerializationProvider
source
- the source stream from which to read the Object(s)
fromObjectInputStream
IOException
- if an error occurs when creating the input streamCopyright ? 2002-2010 Oracle America, Inc. All Rights Reserved.