private static class HttpUpgradeConnectionProvider.FlexBase64
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
DECODING_TABLE |
private static byte[] |
ENCODING_TABLE |
private static java.lang.reflect.Constructor<java.lang.String> |
STRING_CONSTRUCTOR |
| Modifier | Constructor and Description |
|---|---|
private |
FlexBase64() |
| Modifier and Type | Method and Description |
|---|---|
private static int |
complete(char[] target,
int pos,
int state,
int last,
boolean wrap) |
static java.lang.String |
encodeString(byte[] source,
boolean wrap)
Encodes a fixed and complete byte array into a Base64 String.
|
private static java.lang.String |
encodeString(byte[] source,
int pos,
int limit,
boolean wrap) |
private static final byte[] ENCODING_TABLE
private static final byte[] DECODING_TABLE
private static final java.lang.reflect.Constructor<java.lang.String> STRING_CONSTRUCTOR
public static java.lang.String encodeString(byte[] source,
boolean wrap)
source - the byte array to encode fromwrap - whether or not to wrap the output at 76 chars with CRLFsprivate static java.lang.String encodeString(byte[] source,
int pos,
int limit,
boolean wrap)
private static int complete(char[] target,
int pos,
int state,
int last,
boolean wrap)