Interface TypedStreamDeserializer<T>

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface TypedStreamDeserializer<T>
    This interface allows deserialization of a binary data with a provided class type.
    • Method Detail

      • read

        T read​(ObjectDataInput in,
               java.lang.Class aClass)
        throws java.io.IOException
        Reads object from objectDataInputStream
        Parameters:
        in - ObjectDataInput stream that object will read from
        aClass - The class to use for de-serialization
        Returns:
        read object
        Throws:
        java.io.IOException - in case of failure to read