|
||||||||||
| 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.
| Field Summary | |
|---|---|
static Log |
logio
The logger called org.zkoss.io.serializable used to log serialization information. |
| Method Summary | |
|---|---|
static Collection |
smartRead(ObjectInputStream s,
Collection col)
Reads serializable elements back (serialized by smartWrite(ObjectOutputStream,Collection)) |
static Map |
smartRead(ObjectInputStream s,
Map map)
Reads serializable entries back (serialized by smartWrite(ObjectOutputStream,Map)). |
static void |
smartWrite(ObjectOutputStream s,
Collection col)
Writes only serializable elements of the specified collection. |
static void |
smartWrite(ObjectOutputStream s,
Map map)
Writes only serializable entries of the specified map. |
static void |
smartWrite(ObjectOutputStream s,
Object val)
Writes the given value only if it is serializable. |
static void |
smartWrite(ObjectOutputStream s,
Object[] ary)
Writes only serializable elements of the specified array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Log logio
| Method Detail |
|---|
public static void smartWrite(ObjectOutputStream s,
Map map)
throws IOException
IOException
public static Map smartRead(ObjectInputStream s,
Map map)
throws IOException,
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.
IOException
ClassNotFoundException
public static void smartWrite(ObjectOutputStream s,
Collection col)
throws IOException
IOException
public static Collection smartRead(ObjectInputStream s,
Collection col)
throws IOException,
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.
IOException
ClassNotFoundException
public static void smartWrite(ObjectOutputStream s,
Object[] ary)
throws IOException
To read back, use smartRead(ObjectInputStream, Collection).
IOException
public static void smartWrite(ObjectOutputStream s,
Object val)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||