public class Base64 extends Object
NOTE: Decoding is forgiving: spaces etc. are ignored at the beginngin and the end of input and as well inside encoded data - there is also no limit on maximum size of one input line - all data may be just encoded in one line - good for SOAP base64 encoding.
| Constructor and Description |
|---|
Base64() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(Base64DecodingState state,
char[] data,
int off,
int len,
boolean finalize)
Do streaming decoding - state is used maintain decoding dtate if more than
chunk is passed.
|
static byte[] |
decode(char[] data)
Utility function to decode all-at-once.
|
static byte[] |
decode(char[] data,
int off,
int len)
Utility function to decode all-at-once.
|
static char[] |
encode(Base64EncodingState state,
byte[] data,
int off,
int len,
boolean finalize)
Streaming encoder of a chunk.
|
static char[] |
encode(byte[] data)
Utility function to encode all-at-once.
|
static char[] |
encode(byte[] data,
int off,
int len)
Utility function to encode all-at-once.
|
public static byte[] decode(Base64DecodingState state, char[] data, int off, int len, boolean finalize) throws Base64DecodingException
Base64DecodingExceptionpublic static byte[] decode(char[] data,
int off,
int len)
throws Base64DecodingException
Base64DecodingExceptionpublic static byte[] decode(char[] data)
throws Base64DecodingException
Base64DecodingExceptionpublic static char[] encode(Base64EncodingState state, byte[] data, int off, int len, boolean finalize) throws Base64EncodingException
Base64EncodingExceptionpublic static char[] encode(byte[] data,
int off,
int len)
throws Base64EncodingException
Base64EncodingExceptionpublic static char[] encode(byte[] data)
throws Base64EncodingException
Base64EncodingExceptionCopyright © 2013. All Rights Reserved.