jbpm-form-modeler-service-core 6.1.0.Beta2

org.jbpm.formModeler.core.xml.util
Class Base64

java.lang.Object
  extended by 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.


Constructor Summary
Base64()
           
 
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
 

Constructor Detail

Base64

public Base64()
Method Detail

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

jbpm-form-modeler-service-core 6.1.0.Beta2

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.