
io.honeycomb.libhoney.transport.json.JsonSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libhoney-java Show documentation
Show all versions of libhoney-java Show documentation
The Java client for sending events honeycomb
The newest version!
package io.honeycomb.libhoney.transport.json;
import java.io.IOException;
public interface JsonSerializer {
/**
* Serialize a 'T' into a {@code byte} array that encodes JSON in UTF-8.
*
* @param data to serialise to json - must not be null.
* @return bytes of the UTF-8 JSON string.
* @throws IOException if any error occurs during serialization
*/
byte[] serialize(final T data) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy