|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.io.Serializables
public class Serializables
Utilities to handle java.io.Serializable.
| Method Summary | |
|---|---|
static java.util.Collection |
smartRead(java.io.ObjectInputStream s,
java.util.Collection col)
Reads serializable elements back (serialized by smartWrite(ObjectOutputStream,Collection)) |
static java.util.Map |
smartRead(java.io.ObjectInputStream s,
java.util.Map map)
Reads serializable entries back (serialized by smartWrite(ObjectOutputStream,Map)). |
static void |
smartWrite(java.io.ObjectOutputStream s,
java.util.Collection col)
Writes only serializable elements of the specified collection. |
static void |
smartWrite(java.io.ObjectOutputStream s,
java.util.Map map)
Writes only serializable entries of the specified map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void smartWrite(java.io.ObjectOutputStream s,
java.util.Map map)
throws java.io.IOException
java.io.IOException
public static java.util.Map smartRead(java.io.ObjectInputStream s,
java.util.Map map)
throws java.io.IOException,
java.lang.ClassNotFoundException
smartWrite(ObjectOutputStream,Map)).
map - the map to hold the data being read. If null and any data
is read, a new map (HashMap) is created and returned.
java.io.IOException
java.lang.ClassNotFoundException
public static void smartWrite(java.io.ObjectOutputStream s,
java.util.Collection col)
throws java.io.IOException
java.io.IOException
public static java.util.Collection smartRead(java.io.ObjectInputStream s,
java.util.Collection col)
throws java.io.IOException,
java.lang.ClassNotFoundException
smartWrite(ObjectOutputStream,Collection))
col - the collection to hold the data beinig read. If null and
and data is read, a new collection (LinkedList) is created and returned.
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||