org.mozilla.javascript.serialize

Class 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.
Author:
Norris Boyd

Constructor Summary

ScriptableInputStream(InputStream in, Scriptable scope)
Create a ScriptableInputStream.

Method Summary

protected @Override
Class resolveClass(ObjectStreamClass desc)
protected @Override
Object resolveObject(Object obj)

Constructor Details

ScriptableInputStream

public ScriptableInputStream(InputStream in,
                             Scriptable scope)
            throws IOException
Create a ScriptableInputStream.
Parameters:
in - the InputStream to read from.
scope - the top-level scope to create the object in.

Method Details

Class resolveClass

protected @Override Class resolveClass(ObjectStreamClass desc)
            throws IOException,
                   ClassNotFoundException

Object resolveObject

protected @Override Object resolveObject(Object obj)
            throws IOException