org.zkoss.zk.scripting
Interface SerializableAware

All Known Implementing Classes:
BSHInterpreter

public interface SerializableAware

An extra interface implemented by an interpreter (Interpreter) if it supports serialization.

Author:
tomyeh
See Also:
Interpreter

Nested Class Summary
static interface SerializableAware.Filter
          The filter used with write(java.io.ObjectOutputStream, org.zkoss.zk.scripting.SerializableAware.Filter).
 
Method Summary
 void read(java.io.ObjectInputStream s)
          Reads the name and value of the variable from the specified input stream.
 void write(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.IOException
Writes 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.ClassNotFoundException
Reads the name and value of the variable from the specified input stream.

Throws:
java.io.IOException
java.lang.ClassNotFoundException
See Also:
write(java.io.ObjectOutputStream, org.zkoss.zk.scripting.SerializableAware.Filter)


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo