|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.util.Base64
public class Base64
Minimal but fast Base64 codec.
Constructor Summary | |
---|---|
Base64()
|
Method Summary | |
---|---|
static byte[] |
decode(char[] chars)
Decodes base64 characters into bytes. |
static byte[] |
decode(String encodedString)
Decodes a base64 string into bytes. |
static String |
encode(byte[] bytes,
boolean newlines)
Encodes an entire byte array into a Base64 string, with optional newlines after every 76 characters. |
static String |
encode(byte[] bytes,
int off,
int len,
boolean newlines)
Encodes specified bytes into a Base64 string, with optional newlines after every 76 characters. |
static String |
encode(char[] chars,
boolean newlines)
Encodes an entire chars array into a Base64 string, with optional newlines after every 76 characters. |
static String |
encode(char[] chars,
String charset,
boolean newlines)
Encodes an entire chars array into a Base64 string, with optional newlines after every 76 characters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64()
Method Detail |
---|
public static byte[] decode(char[] chars)
chars
- The characters array to decode.
public static byte[] decode(String encodedString)
encodedString
- The string to decode.
public static String encode(byte[] bytes, boolean newlines)
bytes
- The byte array to encode.newlines
- Indicates whether or not newlines are desired.
public static String encode(byte[] bytes, int off, int len, boolean newlines)
bytes
- The byte array to encode.off
- The starting offset.len
- The number of bytes to encode.newlines
- Indicates whether or not newlines are desired.
public static String encode(char[] chars, boolean newlines)
chars
- The characters array to encode.newlines
- Indicates whether or not newlines are desired.
public static String encode(char[] chars, String charset, boolean newlines)
chars
- The characters array to encode.charset
- The character set to use for the character to byte conversion.newlines
- Indicates whether or not newlines are desired.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |