|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pajes.util.Base64Encoder
Base64 encoding utility.
| Method Summary | |
static java.lang.String |
encode(byte[] value,
boolean suppressNewLines)
Accepts a byte array and encodes it using Base64. |
static java.lang.String |
encode(java.lang.String value)
Accepts a String and encodes it using Base64. |
static java.lang.String |
encode(java.lang.String value,
boolean suppressNewLines)
Accepts a String and encodes it using Base64, but offers the option not to break the resulting String into multiple lines. |
static void |
main(java.lang.String[] args)
Accepts a String argument from the command line and returns the Base64 encoded value to System.out. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.lang.String encode(byte[] value,
boolean suppressNewLines)
value - the String to be encoded with Base64.suppressNewLines - if true, no new line characters will be inserted
or appended to the result array.
public static java.lang.String encode(java.lang.String value)
value - the String to be encoded with Base64.
public static java.lang.String encode(java.lang.String value,
boolean suppressNewLines)
value - the String to be encoded with Base64.suppressNewLines - if true, no new line characters will be inserted
or appended to the result String.
public static void main(java.lang.String[] args)
args - the string to encode.
|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||