com.dtolabs.rundeck.core.utils
Class Base64

java.lang.Object
  extended by com.dtolabs.rundeck.core.utils.Base64

public final class Base64
extends java.lang.Object

MIME Base64 encoder.


Method Summary
static byte[] decode(byte[] in)
          return decoded byte[] data.
static byte[] decode(java.lang.String in)
          return decoded data
static byte[] encode(byte[] in)
          return encoded byte[]
static java.lang.String encode(java.lang.String in)
          return encoded string
static boolean isBase64(byte[] b)
          return true if the string is base64 encoded data.
static boolean isBase64(java.lang.String t)
          return true if the string is base64 encoded data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isBase64

public static final boolean isBase64(java.lang.String t)
return true if the string is base64 encoded data. return false if it is not.


isBase64

public static final boolean isBase64(byte[] b)
return true if the string is base64 encoded data. return false if it is not.


encode

public static final java.lang.String encode(java.lang.String in)
return encoded string


encode

public static final byte[] encode(byte[] in)
return encoded byte[]


decode

public static final byte[] decode(java.lang.String in)
return decoded data


decode

public static final byte[] decode(byte[] in)
return decoded byte[] data.