Class Serializer
java.lang.Object
util.Serializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static final ObjectdeSer(byte[] yourBytes) Create an object from a byte array:static final Savabledeserialize(String encoded) static final byte[]static voidstatic final byte[]Prepare the byte arraystatic final Stringprivate static StringstringifyBytes(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
-