
com.offerready.xslt.xsltfunction.Base64 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xslt-library Show documentation
Show all versions of xslt-library Show documentation
Utility classes for XSLT processing used at Offer-Ready GmbH
The newest version!
package com.offerready.xslt.xsltfunction;
import javax.annotation.Nonnull;
import static java.nio.charset.StandardCharsets.UTF_8;
@SuppressWarnings("unused") // These are used by XSLT code
public class Base64 {
public static @Nonnull String encode(@Nonnull String input) {
return new String(java.util.Base64.getEncoder().encode(input.getBytes(UTF_8)), UTF_8);
}
public static @Nonnull String decode(@Nonnull String base64) {
return new String(java.util.Base64.getDecoder().decode(base64), UTF_8);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy