Class DisabledSerializer

  • All Implemented Interfaces:
    Serializer

    public class DisabledSerializer
    extends Object
    implements Serializer
    This handler denies any (de)serialization and can be used to disable existing serializers.
    • Constructor Detail

      • DisabledSerializer

        public DisabledSerializer()
    • 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