码迷,mamicode.com
首页 >  
搜索关键字:osd out    ( 36245个结果
重温WCF之数单向通讯、双向通讯(五)
1.启用单向通讯的方法,不能有返回值(void可以),不能有out参数,只允许传入参数。 [ServiceContract(Namespace = "MyNamespace")] public interface IService { [OperationContra...
分类:其他好文   时间:2014-06-06 22:24:17    阅读次数:263
注册 jvm 关闭时操作
// 注册 jvm 关闭时操作 Runtime.getRuntime().addShutdownHook(new Thread(){ public void run() { System.out.println("关闭"); } });
分类:其他好文   时间:2014-06-06 21:54:11    阅读次数:241
今天的笔记:2014年6月3日
日期的默认输出格式为:Tue Jun 03 19:30:08 CST 2014。问题:如果调整输出的格式。 public static void fun1() { Date date = new Date(); System.out.println(date.toString());} 使用正则表达...
分类:其他好文   时间:2014-06-06 17:27:41    阅读次数:278
映射(mapping)
就像是在Data in, data out中解释过的,index中的每个document都有type。每个type都有自己的mapping或者schema definition。在type中mapping定义filed,定义每个filed中的数据类型,定义ES怎么处理这个filed,mapping也...
分类:移动开发   时间:2014-06-06 16:32:38    阅读次数:235
JSP内置对象详细介绍(上)<转载>
第一个问题: JSP有多少类内置对象?要想回答好这个问题,首先是对JSP的基本知识和技术有深刻的理解和掌握。主要有九个内置对象:application对象,config对象,exception对象,out对象,page对象,pageContext对象,request对象,reponse对象,sess...
分类:Web程序   时间:2014-06-06 15:50:38    阅读次数:280
(转)unbalanced calls to begin/end appearance transitions for uiviewcontroller的解决方法
iOS5 UIViewController加入了管理UIViewController的功能,就像管理subview一样方便。这儿有一博文介绍得很清楚。我在项目中用到了它,方便view的切换。下面的代码有一种fade in/out的效果。[selftransitionFromViewControlle...
分类:移动开发   时间:2014-06-06 07:39:54    阅读次数:345
4个线程例子,2个线程对同一数字加法运算另外2个线程对同一共享数字减法运算
package com.saic.grape.controller; public class Data { private int j=0; /**  * 加法  */ public synchronized void inc() {     j++;     System.out.println("inc 加法运算>>"+j); } /**  * 减法  */...
分类:编程语言   时间:2014-06-04 14:03:01    阅读次数:356
android时间格式的转化,String,Date,long
longtime=System.currentTimeMillis(); System.out.println(time); SimpleDateFormatformat=newSimpleDateFormat("yyyy-MM-ddHH:mm:ss"); java.util.Dated1=newDate(time); Stringnow=format.format(d1); System.out.println(now); longt=0; try{ java.util.Dated2=format.pa..
分类:移动开发   时间:2014-06-04 12:51:10    阅读次数:474
IDL
在接口定义中: in、out指定了参数传递的方向 reval指定了参数应当被当做方法的返回值 coclass指定了独立的组件以及它们支持的接口IDL被编译为二进制格式,即类型库,(TLB文件)COM接口是通过C++的Vtable建立起来的使用ATL AppWizard创建的 工程仅仅为COM组...
分类:其他好文   时间:2014-06-03 15:46:50    阅读次数:297
通过直接预分区的方式建表
/*通过直接预分区的方式建表*/private static void printTableRegion(String tableName)throws IOException{ System.out.println("Prtint region of table:"+tableName);/...
分类:其他好文   时间:2014-06-03 14:51:05    阅读次数:207
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!