public class SerializationUtils
extends org.apache.commons.lang.SerializationUtils
Constructor and Description |
---|
SerializationUtils() |
Modifier and Type | Method and Description |
---|---|
static Object |
deserialize(byte[] objectData,
ClassLoader cl)
Deprecated.
Call deserialize(byte[] objectData, MuleContext muleContext) instead
|
static Object |
deserialize(byte[] objectData,
MuleContext muleContext) |
static Object |
deserialize(InputStream inputStream,
ClassLoader cl)
Deprecated.
Call deserialize(InputStream inputStream, MuleContext muleContext) instead
|
static Object |
deserialize(InputStream inputStream,
ClassLoader cl,
MuleContext muleContext)
Deserializes an
Object from the specified stream. |
static Object |
deserialize(InputStream inputStream,
MuleContext muleContext) |
public static Object deserialize(InputStream inputStream, MuleContext muleContext)
public static Object deserialize(byte[] objectData, MuleContext muleContext)
public static Object deserialize(InputStream inputStream, ClassLoader cl, MuleContext muleContext)
Deserializes an Object
from the specified stream.
The stream will be closed once the object is written. This avoids the need for a finally clause, and maybe also exception handling, in the application code.
The stream passed in is not buffered internally within this method. This is the responsibility of your application if desired.
inputStream
- the serialized object input stream, must not be nullcl
- classloader which can load custom classes from the streamIllegalArgumentException
- if inputStream
is null
org.apache.commons.lang.SerializationException
- (runtime) if the serialization failspublic static Object deserialize(InputStream inputStream, ClassLoader cl)
public static Object deserialize(byte[] objectData, ClassLoader cl)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.