|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.common.collect.Serialization
public final class Serialization
Provides static method for serializing collection classes.
| Method Summary | ||
|---|---|---|
static
|
populateMap(java.util.Map<K,V> map,
java.io.ObjectInputStream stream)
Populates a map by reading an input stream, as part of deserialization. |
|
static
|
populateMultimap(Multimap<K,V> multimap,
java.io.ObjectInputStream stream)
Populates a multimap by reading an input stream, as part of deserialization. |
|
static
|
populateMultiset(Multiset<E> multiset,
java.io.ObjectInputStream stream)
Populates a multiset by reading an input stream, as part of deserialization. |
|
static
|
writeMap(java.util.Map<K,V> map,
java.io.ObjectOutputStream stream)
Stores the contents of a map in an output stream, as part of serialization. |
|
static
|
writeMultimap(Multimap<K,V> multimap,
java.io.ObjectOutputStream stream)
Stores the contents of a multimap in an output stream, as part of serialization. |
|
static
|
writeMultiset(Multiset<E> multiset,
java.io.ObjectOutputStream stream)
Stores the contents of a multiset in an output stream, as part of serialization. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <K,V> void writeMap(java.util.Map<K,V> map,
java.io.ObjectOutputStream stream)
throws java.io.IOException
The serialized output consists of the number of entries, first key, first value, second key, second value, and so on.
java.io.IOException
public static <K,V> void populateMap(java.util.Map<K,V> map,
java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
writeMap(java.util.Map, java.io.ObjectOutputStream) for the data format.
java.io.IOException
java.lang.ClassNotFoundException
public static <E> void writeMultiset(Multiset<E> multiset,
java.io.ObjectOutputStream stream)
throws java.io.IOException
The serialized output consists of the number of distinct elements, the first element, its count, the second element, its count, and so on.
java.io.IOException
public static <E> void populateMultiset(Multiset<E> multiset,
java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
writeMultiset(com.google.common.collect.Multiset, java.io.ObjectOutputStream) for the data format.
java.io.IOException
java.lang.ClassNotFoundException
public static <K,V> void writeMultimap(Multimap<K,V> multimap,
java.io.ObjectOutputStream stream)
throws java.io.IOException
Multimap.asMap() view
determines the ordering in which data is written to the stream.
The serialized output consists of the number of distinct keys, and then for each distinct key: the key, the number of values for that key, and the key's values.
java.io.IOException
public static <K,V> void populateMultimap(Multimap<K,V> multimap,
java.io.ObjectInputStream stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
writeMultimap(com.google.common.collect.Multimap, java.io.ObjectOutputStream) for the data format.
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||