com.microsoft.telemetry.IJsonSerializable Maven / Gradle / Ivy
package com.microsoft.telemetry;
import java.io.IOException;
import java.io.Writer;
/**
* this is the interface for all the data contract objects.
*/
public interface IJsonSerializable {
/**
* Serialize the contract objects with writer
*
* @param writer the writer to serialize data
* @throws IOException will be thrown if something wrong with the output
* stream
* @throws JSONException will be thrown if the data format is not correct
* JSON format.
*/
public void serialize(Writer writer) throws IOException;
}