org.jbpm.formModeler.core.xml.util
Class Base64
java.lang.Object
org.jbpm.formModeler.core.xml.util.Base64
public class Base64
- extends Object
Utility class providing base64-encoding methods. It uses Apache commons Base64 as underlying library.
Method Summary |
static byte[] |
decode(String base64)
Decodes a BASE64 string. |
static String |
encode(byte[] raw)
Encodes an array of bytes into a BASE64 string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Base64
public Base64()
decode
public static byte[] decode(String base64)
- Decodes a BASE64 string.
- Parameters:
base64
- Codified string
- Returns:
- Array of bytes of decodified string
encode
public static String encode(byte[] raw)
- Encodes an array of bytes into a BASE64 string
- Parameters:
raw
- Array of bytes
- Returns:
- Codified string
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.