public final class Serializer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BASE64_PREFIX
Prefix used to indicated that a serialized item was encoded with Base64.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected static final String BASE64_PREFIX
public static Map<String,? extends Serializable> deserializeFromBase64(String rawString) throws IOException
Serializable.rawString - the String contents containing the map to be deserializedIOException - if the contents cannot be parsed for any reasonpublic static String serializeToBase64(Map<String,Serializable> map) throws IOException
map - the Map to serializeIOException - If serialization cannot be doneCopyright © 2001-2019 The Apache Software Foundation. All rights reserved.