All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.bmc.http.client.Serializer Maven / Gradle / Ivy

Go to download

This project contains the HTTP client API of the SDK used for Oracle Cloud Infrastructure

The newest version!
/**
 * Copyright (c) 2016, 2024, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */
package com.oracle.bmc.http.client;

import java.io.IOException;

@InternalSdk
public interface Serializer {
     T readValue(String s, Class type) throws IOException;

     T readValue(byte[] bytes, Class type) throws IOException;

    String writeValueAsString(Object o) throws IOException;

    static Serializer getDefault() {
        return HttpProvider.getDefault().getSerializer();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy