关于不再找java使用CKFinder的原因
CEFinder是CKEditor的文件浏览器。目前还没有给出java版本。对于那些幻想仅通过改几个url就可以使用FCKEditor的java版的朋友,我只能说,清醒一下吧……=。=
原因如下:
FCKEditor的java版通过command参数确定请求指令:
get提交方式可能出现的命令:
GetFolders,GetFoldersAndFiles,CreateFolder
POST提交方式可能出现的命令:
FileUpload,QuickUpload
一共5个命令。
也就是说,fckeditor的文件浏览器只能查看文件夹和文件、上传。
1. Init: this is the first command issued by CKFinder. It returns the general settings of the connector and 2. all configured resource types.
3. GetFolders: gets the list of the children folders of a folder.
4. GetFiles: similar to the above command, gets the list of the children files of a folder.
5. CreateFolder: creates a child folder.
6. RenameFolder: renames a folder.
7. DeleteFolder: deletes a folder.
8. RenameFile: renames a file.
9. DeleteFile: deletes a file.
10. FileUpload (non XML): adds a file in a folder.
11. QuickUpload (non XML): adds a file in a folder.
12. DownloadFile (non XML): downloads a file from the server.
13. humbnail (non XML): downloads the thumbnail of an image file.
CEFinder单独提出来后,命令一下增加到13个。
包括了文件和文件夹的基本操作(新增,删除,浏览),和上传。功能更加强大,也就是说,原来为feceditor提供的java的类根本不能满足。
写这篇文章,只是想告诉那些和我前些日子一样在找CKFinder的朋友,不要再找了。在官方没有退出java版的现如今,暂时还找不到=。=。
还有就是告诉那些曾经告诉我改改url就可以使的朋友和和我一样相信了这个言论一直不懈的努力钻研怎么改的朋友,这条路是死胡同,放弃吧。
当然,也不是说CKFinder咱java就用不了。对于不是铁杆伸手党或很想用很急用的朋友= =,给出如下地址:
http://docs.cksource.com/CKFinder/Server_Side_Integra
相关文档:
(
1
)
+=
:sum += 1;
相当于
sum = sum + 1;
(
2
)
++ --
:i++ i
加
1, i-- i
减
1, ++
或
—
放在数值后,表示执行运算后加(减)
1
,反正数值前表示执行运算前加(减)
1
(
3
)
?
: :
int n = a<10?1:2
表示如果
a
小于
10
则
n
等于
1
否则等于
2
(
4
......
Java编写一个函数交换两个变量的值
Java函数在传递过程中只能够传值,不能传址。这样,函数的参数在函数内部做任何变化就都不会反映到外部调用者来。所以解决之道就是要找到要交换对象的引用。对于普通的值类型,像int或者double这样的可以改传他们的包装类Integer和Double。而对于本来就是引用类型的对象,则需要对他们再 ......
1 import
2 package
3 修饰符
4 抽象类 接口
5 static
6 String相关
7 javadoc
8 异常
9 日期相关
10 输入输出流
11
一 import
import用于导入不同包中的类,不同包中的类名可以相同。
用*号只能导入一个包,不能使用 import java.* 或者 java.*. ......
项目是基于GMT时间的,在系统启动的时候,我们就会调用TimeZone.setDefault(timeZone)将默认时区设为GMT。
后来突然发现,有时用户选择的时间经过后台一圈后回产生8个小时误差。又是间歇性的,要他重现的时候又偏不来。苦心debug,终于发现在部分线程中,时区还是GMT+8,后台某个调用可能把时区 ......
多继承:
C++中的类可以直接实现多继承 如:class D:public A,public B,public C{……};
Java中不能直接实现这样的多继承,但是可以用接口(interface)来间接实现 如:
public class A{ ……}
public interface C{
public void c1();
public void c2();
}
public class C exten ......