intarsys runtime library

de.intarsys.tools.encoding
Class Base64

java.lang.Object
  extended by de.intarsys.tools.encoding.Base64

public class Base64
extends Object

A tool class for the BASE 64 code.


Constructor Summary
Base64()
           
 
Method Summary
static byte[] decode(byte[] bytes)
          Decodes Base64 data into octets
static byte[] decode(byte[] bytes, int offset, int len)
           
static byte[] decode(String inputString)
          Decodes Base64 data into octets
static byte[] encode(byte[] bytes)
          Encodes hex octets into Base64
static byte[] encode(byte[] bytes, int offset, int length)
           
static boolean isBase64(byte octect)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64

public Base64()
Method Detail

decode

public static byte[] decode(byte[] bytes)
Decodes Base64 data into octets

Parameters:
bytes - Byte array containing Base64 data
Returns:
byte array containing decoded data.

decode

public static byte[] decode(byte[] bytes,
                            int offset,
                            int len)

decode

public static byte[] decode(String inputString)
Decodes Base64 data into octets

Parameters:
inputString - String containing Base64 data
Returns:
byte array containing decoded data.

encode

public static byte[] encode(byte[] bytes)
Encodes hex octets into Base64

Parameters:
bytes - Array containing binaryData
Returns:
Encoded Base64 array

encode

public static byte[] encode(byte[] bytes,
                            int offset,
                            int length)

isBase64

public static boolean isBase64(byte octect)

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.