com.here.account.util.Serializer Maven / Gradle / Ivy
package com.here.account.util;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
public interface Serializer {
/**
* Reads from the input jsonInputStream containing bytes from a JSON stream,
* and returns the corresponding Map<String, Object>.
*
* @param jsonInputStream the input stream
* @return the corresponding deserialized Map<String, Object>
*/
Map jsonToMap(InputStream jsonInputStream);
T jsonToPojo (InputStream jsonInputStream, Class pojoClass);
String objectToJson(Object object);
void writeObjectToJson(OutputStream outputStream, Object object);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy