public final class SafeEncoder extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
encode(byte[] data)
Encodes string from byte array using UTF-8.
|
static String |
encode(byte[] data,
int offset,
int length) |
static byte[] |
encode(String str)
Encodes string in byte array using UTF-8.
|
public static byte[] encode(String str)
str - string to encodepublic static String encode(byte[] data)
data - byte arraypublic static String encode(byte[] data, int offset, int length)
data - byte arrayoffset - offset in byte arraylength - length of bytes to convert into stringCopyright © 2018 Amadeus s.a.s.. All rights reserved.