Package com.hazelcast.nio.serialization
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.
@FunctionalInterface public interface TypedByteArrayDeserializer<T>
This interface allows deserialization of a binary data with a provided class type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
read(byte[] bytes, java.lang.Class aClass)
Reads object from objectDataInputStream
-
-
-
Method Detail
-
read
T read(byte[] bytes, java.lang.Class aClass) throws java.io.IOException
Reads object from objectDataInputStream- Parameters:
bytes
- Bytes that object will be read fromaClass
- The class to use for de-serialization- Returns:
- read object
- Throws:
java.io.IOException
- in case of failure to read
-
-