Package com.intellectualsites.http
Interface EntityMapper.EntityDeserializer<T>
- Type Parameters:
T- Object type
- Enclosing class:
- EntityMapper
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Deserializer for HTTP response bodies
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(@Nullable ContentType contentType, @org.jetbrains.annotations.NotNull byte[] input)Deserialize the input byte array into an object.
-
Method Details
-
deserialize
@NotNull T deserialize(@Nullable @Nullable ContentType contentType, @NotNull @org.jetbrains.annotations.NotNull byte[] input)Deserialize the input byte array into an object.- Parameters:
contentType- Optional content type, if supplied by the serverinput- Input that should be de-serialized- Returns:
- De-serialized input
-