public class CharsetUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getCharset(org.mule.runtime.api.util.MultiMap<String,String> headers,
Object payload) |
static String |
getCharset(String contentType) |
static byte[] |
trimBom(byte[] content)
Removes BOM from byte array if present
|
public static String getCharset(org.mule.runtime.api.util.MultiMap<String,String> headers, Object payload) throws UnsupportedMediaTypeException
UnsupportedMediaTypeExceptionpublic static byte[] trimBom(byte[] content)
content - byte arrayCopyright © 2025. All rights reserved.