Class NullSerializer

  • All Implemented Interfaces:
    Serializer

    public class NullSerializer
    extends Object
    implements Serializer
    This Serializer (de)serializes null only.
    • Constructor Detail

      • NullSerializer

        public NullSerializer()
    • Method Detail

      • fromByteArray

        public <T> T fromByteArray​(byte[] bytes,
                                   Class<T> type)
                            throws IOException
        Description copied from interface: Serializer
        Produces an object of type T from an array of bytes.
        Specified by:
        fromByteArray in interface Serializer
        Throws:
        IOException - if serialization to byte array fails