public class Decoder extends Object
Modifier and Type | Method and Description |
---|---|
static String |
printBase64Binary(byte[] input) |
static String |
printBase64Binary(byte[] input,
int offset,
int len) |
static int |
printBase64Binary(byte[] input,
int offset,
int len,
char[] buf,
int ptr)
Encodes a byte array into a char array by doing base64 encoding.
|
public static String printBase64Binary(byte[] input)
public static String printBase64Binary(byte[] input, int offset, int len)
public static int printBase64Binary(byte[] input, int offset, int len, char[] buf, int ptr)
The caller must supply a big enough buffer.
ptr+((len+2)/3)*4
, which is the new offset
in the output buffer where the further bytes should be placed.Copyright © 2021. All rights reserved.