use of com.hazelcast.nio.ObjectDataInput in project dolphin-platform by canoo.
the class EventStreamSerializerTests method convertToEvent.
private <T extends Serializable> DolphinEvent<T> convertToEvent(final JsonElement jsonElement) throws IOException {
final EventStreamSerializer streamSerializer = new EventStreamSerializer();
final ObjectDataInput input = new JsonBasedObjectDataInput(jsonElement);
return (DolphinEvent<T>) streamSerializer.read(input);
}
Aggregations