1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0//EN">
6 <style type=
"text/css">
9 font-family: verdana
, sans-serif
;
29 text-decoration:underline
;
34 text-decoration: none
;
47 border-bottom-width:1px;
48 border-bottom-style:dotted
;
64 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
67 <big><tt>Global.String.prototype.enbase64
()
</tt></big><br>
73 returns the string encoded using the base64 algorithm
<br><br>
87 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
89 <td>Sourcecode in /root/helma-
1.6.1/modules/core/String.js:
90 <pre><font color=
"#aaaaaa">542:
</font> String.prototype.enbase64 = function() {
91 <font color=
"#aaaaaa">543:
</font> var bytes = new java.lang.String(this) . getBytes();
92 <font color=
"#aaaaaa">544:
</font> return new Packages.sun.misc.BASE64Encoder().encode(bytes);
93 <font color=
"#aaaaaa">545:
</font> }