#Base64
Base64是一种使用64基的位置计数法。它使用2的最大次方来代表仅可打印的ASCII 字符。这使它可用来作为电子邮件的传输编码。在Base64中的变量使用字符A-Z、a-z和0-9 ,这样共有62个字符,用来作为开始的64个数字,最后两个用来作为数字的符号在不同的系统中而不同。一些如uuencode的其他编码方法,和之后binhex的版本使用不同的64字符集来代表6个二进制数字,但是它们不叫Base64。
http://zh.wikipedia.org/wiki/Base64
#FreeMarker特性介绍与概述
FreeMarker是一个模板引擎,一个基于模板生成文本输出的通用工具,使用纯Java编写 ,FreeMarker被设计用来生成HTML Web页面,特别是基于MVC模式的应用程序 ,虽然FreeMarker具有一些编程的能力,但通常由Java程序准备要显示的数据,由FreeMarker生成页面,通过模板显示准备的数据
http://www.blogjava.net/liuwentao253/archive/2007/09/23/147560.html
#实例化
private static Control ControlAdapter = null;
/**
* 此类使用单例模式,方法取得单例类对象
* */
public static Control getInstance(){
if(ControlAdapter == null)
ControlAdapter = new ControlAdapter();
return ControlAdapter;
}
单例模式 可以防止 数据的冲突,节省内存空间
#去除List中重复值
List<LogisticOrder> logisticOrder = ((Page<LogisticOrder>) pageObject).getResult();
Set<String> setLot = new HashSet<String>();
for(LogisticOrder t :logisticOrder ){
setLot.add((t.getLotNo()==null || “”.equals(t.getLotNo())) ? “无批次号” : t.getLotNo());
}
#JFileChooser
JFileChooser dlg = new JFileChooser();
int result = dlg.showSaveDialog(CatFishEnvironment.getInstance().getMainFrame());
//检测是不是点击了确认按钮
if (result == JFileChooser.APPROVE_OPTION) {}
//如果点击了取消按钮
if (result == JFileChooser.CANCEL_OPTION) {}
//返回一个被选择器选中的文件对象
//(不是文件路径,而是文件对象,通过此对象方能取得文件路径)
File file = chooser.getSelectedFile();
//Select directories only
dlg.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
//Select files only
dlg.setFileSelectionMode(JFileChooser.FILES_ONLY);
//获取绝对路径
dlg.getSelectedFile().getAbsolutePath();
#Eclipse
Open Type 编辑器中打开的 Java 类的名称: ctrl + shift + t
类型层次结构中打开 Java 类型: ctrl + t
(若选择了某个接口,按ctrl + t后,列表将显示已知的所有实现了该接口的类)
Open Resources: ctrl + shift + r
分享到:
相关推荐
这份LAPACK工作笔记编号41(LAPACK Working Note 41)是关于如何安装、测试以及计时LAPACK版本3.0的指南。该指南详细描述了安装过程,并且提供了Unix系统和非Unix系统版本的测试包的指令。工作笔记中还对测试程序和...
`note` varchar(10) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`), UNIQUE KEY `tDate` (`date`) ) ENGINE=InnoDB AUTO_INCREMENT=724 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records ...
Note that this SCM extension is not associated with the 3GPP working group. It was developed in Workpackage 5 (WP5) of the WINNER1 project [WIN] of the European Union’s 6th Framework Program. Also...
3. **形容词辨析**:例3中用"hard-working"来形容哥哥工作勤奋,常工作到深夜。这提醒我们了解并正确使用形容词来描绘人物性格或状态的重要性。 4. **宾语从句**:例4中"what they needed most"是宾语从句,作为...
Fortunately, Bill has a working stopwatch, so they can record their speed and the total time they have driven. Unfortunately, their record keeping strategy is a little odd, so they need help ...
Note 1 : Resolution & refresh rate change perfectly work and glass menubar = 0 working your Intel HD 3000 & HD 4000 card. Note 2 : OS X Mavericks 10.9 (13A598) Edited, Tested & Uploaded by: ...
roommate was working at a retail electronics store in the early 2000s. Occasionally, the store would receive a spreadsheet of thousands of product prices from its competitor. A team of three employees...
Note The pool is, in effect, a common area of memory shared by all processes. One of the most common uses of non-paged pool is the storage of object handles. For more information regarding ...
Whether you are making a road, a ramp, a path or a...NOTE: Path Painter does not create meshes, so if you are making rivers you would typically also use another tool as well to shade the river component.
Note that this acts considerably different than Microsoft's nmake. 2. mu.exe - This is a utility build by the pegasus team to smooth out the differences between the different platforms with respect ...
Note that MT mode is still supported for Windows only. Reducing memory heap requirements Existing support for partial file loading and paging has been further developed and enhanced. For more details...
IMPORTANT NOTE: Relax isn't yet ready for production, stay tunned for releases, beta version will come soon Support our work and help us make this the best open source CMS, be our patreon! Relax is ...
最新的 TWAIN 2.3 规范。...Additional tests for the TWAIN Self-Certification system, and a note that TWAIN Self-Certification applications can now be registered on the TWAIN Working Group website.
Note: This plugin doesn't support SRP (Scriptable Render Pipeline) or URP (Universal Render Pipeline). Welcome to Runtime Transform Gizmos! RTG is a scripting API which allows you to easily ...
Note that this is a partial update from the orginal version, there will be more additions, I just thought it was time to consolidate some stuff. This article has been written concisely and ...
An utility for working with Brainfuck and related languages. It can encode and decode programs in various formats. What works? EVERYTHING! You can run Brainfuck programs and encode/decode Brainfuck ...
: Get JDK 8 installed and working first. You have to use the class names specfied here, you can't make up your own names. Java class names are case sentitive. Note that by defining the class names, ...
ISBN-13 书号 9780735667105 Author 作者 The Microsoft Dynamics AXTeam,Margaret Sherman ... Readers should have working knowledgeof SQL and OOP concepts to gain max benefit from this book.
day_time日期 day_week星期几 day_desc节假日描述 day_working0上班,1休息 lunar_note农历节假日描述
Note: "." is a useful shorthand for the project in the current working directory. status repo status [] Compares the working tree to the staging area (index) and the most recent commit on this ...