org.mozilla.javascript.serialize
public class ScriptableOutputStream extends ObjectOutputStream
Constructor Summary | |
---|---|
ScriptableOutputStream(OutputStream out, Scriptable scope)
ScriptableOutputStream constructor.
|
Method Summary | |
---|---|
void | addExcludedName(String name)
Adds a qualified name to the list of object to be excluded from
serialization. |
void | addOptionalExcludedName(String name)
Adds a qualified name to the list of object to be excluded from
serialization. |
void | excludeStandardObjectNames()
Adds the names of the standard objects and their
prototypes to the list of excluded names. |
boolean | hasExcludedName(String name)
Returns true if the name is excluded from serialization. |
void | removeExcludedName(String name)
Removes a name from the list of names to exclude. |
protected Object | replaceObject(Object obj) |
Parameters: out the OutputStream to write to. scope the scope containing the object.
Parameters: name a fully qualified name (of the form "a.b.c", where "a" must be a property of the top-level object)
Throws: IllegalArgumentException if the object is not found or is not a {@link Scriptable}.
Parameters: name a fully qualified name (of the form "a.b.c", where "a" must be a property of the top-level object). The object need not exist, in which case the name is ignored.
Throws: IllegalArgumentException if the object is not a {@link Scriptable}.