|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ecyrd.jspwiki.util.Serializer
public final class Serializer
Provides static helper functions for serializing different objects.
| Field Summary | |
|---|---|
protected static String |
BASE64_PREFIX
Prefix used to indicated that a serialized item was encoded with Base64. |
| Method Summary | |
|---|---|
static Map<String,? extends Serializable> |
deserializeFromBase64(String rawString)
Deserializes a Base64-encoded String into a HashMap. |
static String |
serializeToBase64(Map<String,Serializable> map)
Serializes a Map and formats it into a Base64-encoded String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String BASE64_PREFIX
| Method Detail |
|---|
public static Map<String,? extends Serializable> deserializeFromBase64(String rawString)
throws IOException
Serializable.
rawString - the String contents containing the map to be deserialized
IOException - if the contents cannot be parsed for any reason
public static String serializeToBase64(Map<String,Serializable> map)
throws IOException
map - the Map to serialize
IOException - If serialization cannot be done
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||