public final class Serializer extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,? extends java.io.Serializable> |
deserializeFromBase64(java.lang.String rawString)
Deserializes a Base64-encoded String into a HashMap.
|
static java.lang.String |
serializeToBase64(java.util.Map<java.lang.String,java.io.Serializable> map)
Serializes a Map and formats it into a Base64-encoded String.
|
public static java.util.Map<java.lang.String,? extends java.io.Serializable> deserializeFromBase64(java.lang.String rawString) throws java.io.IOException
Serializable.rawString - the String contents containing the map to be deserializedjava.io.IOException - if the contents cannot be parsed for any reasonpublic static java.lang.String serializeToBase64(java.util.Map<java.lang.String,java.io.Serializable> map) throws java.io.IOException
map - the Map to serializejava.io.IOException - If serialization cannot be doneCopyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.