com.qcloud.cos.internal.cihandler.CIJsonHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cos_api-bundle Show documentation
Show all versions of cos_api-bundle Show documentation
A single bundled dependency that includes all service and dependent JARs with third-party libraries
relocated to different namespaces.
package com.qcloud.cos.internal.cihandler;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.io.InputStream;
public class CIJsonHandler {
public T getResponse(InputStream in, Class tClass) throws IOException {
ObjectMapper mapper = new ObjectMapper();
return mapper.readValue(in, tClass);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy