Package io.prometheus.client.exporter
Class Base64
- java.lang.Object
-
- io.prometheus.client.exporter.Base64
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringencodeToString(byte[] src)Encodes a byte[] to a String using Base64.
-
-
-
Method Detail
-
encodeToString
public static String encodeToString(byte[] src)
Encodes a byte[] to a String using Base64. Passing a null argument will cause a NullPointerException to be thrown.- Parameters:
src- string to be encoded- Returns:
- String in Base64 encoding
-
-