Package art.cutils

Class Serialization


  • public class Serialization
    extends org.apache.commons.lang3.SerializationUtils
    Assists with the serialization process and performs additional functionality based on serialization.
    • Deep clone using serialization
    • Serialize managing finally and IOException
    • Deserialize managing finally and IOException

    This class throws exceptions for invalid null inputs. Each method documents its behaviour in more detail.

    #ThreadSafe#

    Since:
    1.0
    Author:
    , Bobai Kato
    • Constructor Detail

      • Serialization

        public Serialization()
    • Method Detail

      • serialize

        public static byte @NotNull [] serialize​(Object object)
                                          throws IOException
        Serializes an Object to a byte array.
        Parameters:
        object - the object to serialize to bytes
        Returns:
        a byte[] with the converted Serializable
        Throws:
        IOException - if the serialization fails
        Since:
        1.0