org.mozilla.javascript.serialize
Class ScriptableInputStream
ObjectInputStream
org.mozilla.javascript.serialize.ScriptableInputStream
public class ScriptableInputStream
extends ObjectInputStream
Class ScriptableInputStream is used to read in a JavaScript
object or function previously serialized with a ScriptableOutputStream.
References to names in the exclusion list
replaced with references to the top-level scope specified during
creation of the ScriptableInputStream.
ScriptableInputStream
public ScriptableInputStream(InputStream in,
Scriptable scope)
throws IOException
Create a ScriptableInputStream.
in
- the InputStream to read from.scope
- the top-level scope to create the object in.
resolveClass
protected Class resolveClass(ObjectStreamClass desc)
throws IOException,
ClassNotFoundException
resolveObject
protected Object resolveObject(Object obj)
throws IOException