Example usage for com.squareup.okhttp MediaType charset

List of usage examples for com.squareup.okhttp MediaType charset

Introduction

In this page you can find the example usage for com.squareup.okhttp MediaType charset.

Prototype

String charset

To view the source code for com.squareup.okhttp MediaType charset.

Click Source Link

Usage

From source file:org.apache.nifi.processors.standard.InvokeHTTP.java

License:Apache License

private Charset getCharsetFromMediaType(MediaType contentType) {
    return contentType != null ? contentType.charset(StandardCharsets.UTF_8) : StandardCharsets.UTF_8;
}