|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.xmp.impl.Base64
public class Base64
A utility class to perform base64 encoding and decoding as specified in RFC-1521. See also RFC 1421.
Constructor Summary | |
---|---|
Base64()
|
Method Summary | |
---|---|
static byte[] |
decode(byte[] src)
Decode the given byte[]. |
static String |
decode(String src)
Decode the given string. |
static byte[] |
encode(byte[] src)
Encode the given byte[]. |
static byte[] |
encode(byte[] src,
int lineFeed)
Encode the given byte[]. |
static String |
encode(String src)
Encode the given string. |
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 final byte[] encode(byte[] src)
src
- the source string.
public static final byte[] encode(byte[] src, int lineFeed)
src
- the source string.lineFeed
- a linefeed is added after linefeed
characters;
must be dividable by four; 0 means no linefeeds
public static final String encode(String src)
src
- the source string.
public static final byte[] decode(byte[] src) throws IllegalArgumentException
src
- the base64-encoded data.
IllegalArgumentException
- Thrown if the base 64 strings contains non-valid characters,
beside the bas64 chars, LF, CR, tab and space are accepted.public static final String decode(String src)
src
- the base64-encoded string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |