Interface TypedByteArrayDeserializer<T>

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

public interface TypedByteArrayDeserializer<T>
This interface allows deserialization of a binary data with a provided class type.
  • Method Summary

    Modifier and Type Method Description
    T read​(byte[] bytes, Class aClass)
    Reads object from objectDataInputStream
  • Method Details

    • read

      T read​(byte[] bytes, Class aClass) throws IOException
      Reads object from objectDataInputStream
      bytes - Bytes that object will be read from
      aClass - The class to use for de-serialization
      read object
      IOException - in case of failure to read