public class Base64Converter extends Object
Modifier and Type | Field and Description |
---|---|
static int |
LINE_LENGTH
If you ask for line-breaks, this is the maximum line length used.
|
Modifier and Type | Method and Description |
---|---|
static int |
calculateBase64OutputSize(int input_size,
boolean line_breaks)
Calculates the size of the resulting Base64 string returned by this class for a binary byte
array of the specified length.
|
static int |
calculateBinaryOutputSize(byte[] input,
int input_size)
Calculate the number of bytes encoded by a given Base64 input.
|
static String |
convertBase64StringToString(String base64) |
static byte[] |
convertBase64ToBinary(byte[] input) |
static byte[] |
convertBase64ToBinary(byte[] input,
int input_size) |
static byte[] |
convertBinaryToBase64(byte[] from) |
static byte[] |
convertBinaryToBase64(byte[] from,
int count,
boolean line_breaks) |
static String |
convertStringToBase64String(String convert_me) |
public static final int LINE_LENGTH
public static byte[] convertBinaryToBase64(byte[] from)
public static String convertBase64StringToString(String base64) throws Base64FormatException
Base64FormatException
public static byte[] convertBinaryToBase64(byte[] from, int count, boolean line_breaks)
public static int calculateBase64OutputSize(int input_size, boolean line_breaks)
public static byte[] convertBase64ToBinary(byte[] input) throws Base64FormatException
Base64FormatException
public static byte[] convertBase64ToBinary(byte[] input, int input_size) throws Base64FormatException
Base64FormatException
public static int calculateBinaryOutputSize(byte[] input, int input_size) throws Base64FormatException
Base64FormatException
Copyright © 2014. All rights reserved.