|
xmlBlaster 2.1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xmlBlaster.contrib.dbwatcher.convert.Base64
public class Base64
Converter to and from base 64.
| Field Summary | |
|---|---|
(package private) static char[] |
charTab
|
| Constructor Summary | |
|---|---|
Base64()
|
|
| Method Summary | |
|---|---|
private static void |
assertSame(byte[] a,
byte[] b)
|
(package private) static int |
decode(char c)
|
static byte[] |
decode(java.lang.String s)
Decodes the given Base64 encoded String to a new byte array. |
static java.lang.String |
encode(byte[] data)
Create a base64 encoded string. |
static java.lang.StringBuffer |
encode(byte[] data,
int start,
int len,
java.lang.StringBuffer buf)
Encodes the part of the given byte array denoted by start and len to the Base64 format. |
static void |
main(java.lang.String[] args)
java org.xmlBlaster.contrib.dbwatcher.convert.Base64 -file MyFile.jpg java org.xmlBlaster.contrib.dbwatcher.convert.Base64 HelloWorld -> SGVsbG9Xb3JsZA== java org.xmlBlaster.contrib.dbwatcher.convert.Base64 -decode Q2lBOGEyVjVJRzlwWkQwblNHVnNiRzhuSUdOdmJuUmxiblJOYVcxbFBTZDBaWGgwTDNodGJDY2dZMjl1ZEdWdWRFMXBiV1ZGZUhSbGJtUmxaRDBuTVM0d0p6NEtJQ0E4YjNKbkxuaHRiRUpzWVhOMFpYSStQR1JsYlc4dE16NDhMMlJsYlc4dE16NDhMMjl5Wnk1NGJXeENiR0Z6ZEdWeVBnb2dQQzlyWlhrKw== |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final char[] charTab
| Constructor Detail |
|---|
public Base64()
| Method Detail |
|---|
public static java.lang.String encode(byte[] data)
data -
public static java.lang.StringBuffer encode(byte[] data,
int start,
int len,
java.lang.StringBuffer buf)
data - start - len - buf -
static int decode(char c)
public static byte[] decode(java.lang.String s)
s -
public static void main(java.lang.String[] args)
throws java.lang.Exception
XmlBlasterException
java.lang.Exception
private static void assertSame(byte[] a,
byte[] b)
|
xmlBlaster 2.1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||