资源简介
内含java播放器插件 和其他功能
DJNativeSwing-SWT 最新版
代码片段和文件信息
/*
* Christopher Deckers (chrriis@nextencia.net)
* http://www.nextencia.net
*
* See the file “readme.txt“ for information on usage and redistribution of
* this file and for a DISCLAIMER OF ALL WARRANTIES.
*/
package chrriis.common;
import java.io.UnsupportedEncodingException;
/**
* @author Christopher Deckers
*/
class base64 {
private base64() {}
private static char toChar(int index boolean isURLSafe) {
char c;
switch(index) {
case 0: c = ‘A‘; break;
case 1: c = ‘B‘; break;
case 2: c = ‘C‘; break;
case 3: c = ‘D‘; break;
case 4: c = ‘E‘; break;
case 5: c = ‘F‘; break;
case 6: c = ‘G‘; break;
case 7: c = ‘H‘; break;
case 8: c = ‘I‘; break;
case 9: c = ‘J‘; break;
case 10: c = ‘K‘; break;
case 11: c = ‘L‘; break;
case 12: c = ‘M‘; break;
case 13: c = ‘N‘; break;
case 14: c = ‘O‘; break;
case 15: c = ‘P‘; break;
case 16: c = ‘Q‘; break;
case 17: c = ‘R‘; break;
case 18: c = ‘S‘; break;
case 19: c = ‘T‘; break;
case 20: c = ‘U‘; break;
case 21: c = ‘V‘; break;
case 22: c = ‘W‘; break;
case 23: c = ‘X‘; break;
case 24: c = ‘Y‘; break;
case 25: c = ‘Z‘; break;
case 26: c = ‘a‘; break;
case 27: c = ‘b‘; break;
case 28: c = ‘c‘; break;
case 29: c = ‘d‘; break;
case 30: c = ‘e‘; break;
case 31: c = ‘f‘; break;
case 32: c = ‘g‘; break;
case 33: c = ‘h‘; break;
case 34: c = ‘i‘; break;
case 35: c = ‘j‘; break;
case 36: c = ‘k‘; break;
case 37: c = ‘l‘; break;
case 38: c = ‘m‘; break;
case 39: c = ‘n‘; break;
case 40: c = ‘o‘; break;
case 41: c = ‘p‘; break;
case 42: c = ‘q‘; break;
case 43: c = ‘r‘; break;
case 44: c = ‘s‘; break;
case 45: c = ‘t‘; break;
case 46: c = ‘u‘; break;
case 47: c = ‘v‘; break;
case 48: c = ‘w‘; break;
case 49: c = ‘x‘; break;
case 50: c = ‘y‘; break;
case 51: c = ‘z‘; break;
case 52: c = ‘0‘; break;
case 53: c = ‘1‘; break;
case 54: c = ‘2‘; break;
case 55: c = ‘3‘; break;
case 56: c = ‘4‘; break;
case 57: c = ‘5‘; break;
case 58: c = ‘6‘; break;
case 59: c = ‘7‘; break;
case 60: c = ‘8‘; break;
case 61: c = ‘9‘; break;
case 62: c = isURLSafe? ‘-‘: ‘+‘; break;
case 63: c = isURLSafe? ‘_‘: ‘/‘; break;
default: throw new RuntimeException(“Cannot happen.“);
}
return c;
}
private static int fromChar(char c) {
int index;
switch(c) {
case ‘A‘: index = 0; break;
case ‘B‘: index = 1; break;
case ‘C‘: index = 2; break;
case ‘D‘: index = 3; break;
case ‘E‘: index = 4; break;
case ‘F‘: index = 5; break;
case ‘G‘: index = 6; break;
case ‘H‘: index = 7; break;
c
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 24847 2011-11-06 16:36 licence.txt
文件 2688 2011-11-06 16:36 SystemProperties.txt
文件 1717 2011-11-06 16:36 changelog.txt
文件 2469 2011-11-06 16:36 readme.txt
文件 5195 2011-11-06 16:36 SystemProperties-SWT.txt
文件 9056 2011-11-06 16:36 changelog-SWT.txt
文件 2976 2011-11-06 16:36 readme-SWT.txt
文件 539639 2011-11-20 20:51 DJNativeSwing-SWT.jar
文件 918222 2011-11-20 20:51 DJNativeSwing-SWTDemo.jar
文件 111635 2011-11-20 20:51 DJNativeSwing.jar
目录 0 2011-11-20 20:51 lib\
目录 0 2011-11-20 12:15 lib\jna\
文件 944033 2011-11-06 16:39 lib\jna\jna-3.2.4.jar
文件 211221 2011-11-06 16:36 lib\jna\jna_WindowUtils.jar
目录 0 2011-11-20 12:15 lib\ckeditor\
目录 0 2011-11-20 12:15 lib\fckeditor\
目录 0 2011-11-20 12:15 lib\mozilla\
目录 0 2011-11-20 12:15 lib\syntaxhighlighter\
目录 0 2011-11-20 12:15 lib\tinymce\
文件 753480 2011-11-06 16:40 lib\ckeditor\ckeditor_3.0.1.zip
文件 1007392 2011-11-06 16:40 lib\fckeditor\FCKeditor_2.6.3.zip
文件 678339 2011-11-06 16:40 lib\mozilla\MozillaInterfaces-1.8.1.3.jar
文件 19883 2011-11-06 16:40 lib\syntaxhighlighter\SyntaxHighlighter_1.5.1.zip
文件 600507 2011-11-06 16:40 lib\tinymce\TinyMCE_3.4.3.2.zip
目录 0 2011-11-20 12:15 lib\swt\
文件 1872280 2011-11-06 16:41 lib\swt\swt-3.7M5-win32-win32-x86.jar
目录 0 2011-11-20 20:51 src\
目录 0 2011-11-20 20:51 src\DJNativeSwing-SWTDemo\
目录 0 2011-11-20 12:15 src\DJNativeSwing-SWTDemo\chrriis\
目录 0 2011-11-20 12:15 src\DJNativeSwing-SWTDemo\chrriis\common\
目录 0 2011-11-20 12:15 src\DJNativeSwing-SWTDemo\chrriis\common\ui\
............此处省略403个文件信息
评论
共有 条评论