public class Base64 extends Object
Base64 This is a utility program to handle all Base 64 conversions| Constructor and Description |
|---|
Base64() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(char[] data,
int off,
int len) |
void |
decode(char[] data,
int off,
int len,
OutputStream ostream) |
byte[] |
decode(String data) |
void |
decode(String data,
OutputStream ostream) |
String |
encode(byte[] data)
Returns base64 representation of specified byte array.
|
String |
encode(byte[] data,
int off,
int len)
Returns base64 representation of specified byte array.
|
void |
encode(byte[] data,
int off,
int len,
OutputStream ostream)
Outputs base64 representation of the specified byte array to a byte stream.
|
void |
encode(byte[] data,
int off,
int len,
Writer writer)
Outputs base64 representation of the specified byte array to a character stream.
|
int |
getDefError() |
static void |
main(String[] args) |
public byte[] decode(char[] data,
int off,
int len)
public byte[] decode(String data)
public void decode(char[] data,
int off,
int len,
OutputStream ostream)
throws IOException
IOExceptionpublic void decode(String data, OutputStream ostream) throws IOException
IOExceptionpublic String encode(byte[] data)
data - datapublic String encode(byte[] data, int off, int len)
data - dataoff - offlen - lenpublic void encode(byte[] data,
int off,
int len,
OutputStream ostream)
throws IOException
data - dataoff - offlen - lenostream - streamIOException - expublic void encode(byte[] data,
int off,
int len,
Writer writer)
throws IOException
data - dataoff - offlen - lenwriter - writerIOException - expublic static void main(String[] args)
public int getDefError()
Copyright © 2020. All rights reserved.