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

io.quarkus.vault.runtime.StringHelper Maven / Gradle / Ivy

There is a newer version: 2.5.4.Final
Show newest version
package io.quarkus.vault.runtime;

import static java.nio.charset.StandardCharsets.UTF_8;

public class StringHelper {

    public static byte[] stringToBytes(String s) {
        return s == null ? null : s.getBytes(UTF_8);
    }

    public static String bytesToString(byte[] bytes) {
        return bytes == null ? null : new String(bytes, UTF_8);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy