Package org.zkoss.zk.scripting
Interface SerializableAware
-
- All Known Implementing Classes:
BSHInterpreter
public interface SerializableAwareAn extra interface implemented by an interpreter (Interpreter) if it supports serialization.- Author:
- tomyeh
- See Also:
Interpreter
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceSerializableAware.FilterThe filter used withwrite(java.io.ObjectOutputStream, org.zkoss.zk.scripting.SerializableAware.Filter).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidread(java.io.ObjectInputStream s)Reads the name and value of the variable from the specified input stream.voidwrite(java.io.ObjectOutputStream s, SerializableAware.Filter filter)Writes the name and value of the variables of this namespace to the specified stream.
-
-
-
Method Detail
-
write
void write(java.io.ObjectOutputStream s, SerializableAware.Filter filter) throws java.io.IOExceptionWrites the name and value of the variables of this namespace to the specified stream.If the variable's value is not serializable, it won't be written.
To read back, use
read(java.io.ObjectInputStream).- Throws:
java.io.IOException
-
read
void read(java.io.ObjectInputStream s) throws java.io.IOException, java.lang.ClassNotFoundExceptionReads the name and value of the variable from the specified input stream.- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException- See Also:
write(java.io.ObjectOutputStream, org.zkoss.zk.scripting.SerializableAware.Filter)
-
-