Class Serializer
java.lang.Object
util.Serializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static final Object
deSer
(byte[] yourBytes) Create an object from a byte array:static final Savable
deserialize
(String encoded) static final byte[]
static void
static final byte[]
Prepare the byte arraystatic final String
private static String
stringifyBytes
(byte[] data)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
serialize
-
deserialize
-
getBytes
- Parameters:
ser
- The serialized format for the byte array of the object- Returns:
- the byte array from the serialized format of the object
-
ser
Prepare the byte array- Parameters:
yourObject
-- Returns:
-
deSer
Create an object from a byte array:- Parameters:
yourBytes
-- Returns:
-
stringifyBytes
-
main
-