很多RPC技术都会使用中间语言来定义接口描述,比如Web Service常用的WSDL, Thrift使用的IDL。
这类文件都是接口定义/描述语言 (Interface Definition/Description Language),有几个特点:
1. 采用中间语言来描述接口,以及接口使用到的数据结构(类)
2. 一般都采用文本文件,方便传递
3. 语法上可以使用XML,也可以...
分类:
其他好文 时间:
2014-09-17 12:15:02
阅读次数:
278
Pan平移手势
最终效果图:
//
// PanController.m
// 38_手势
//
// Created by beyond on 14-9-16.
// Copyright (c) 2014年 com.beyond. All rights reserved.
//
#import "PanController.h"
@interface PanC...
分类:
移动开发 时间:
2014-09-17 12:12:22
阅读次数:
320
Java Native Interface (JNI) 是Java和C/C++之间的桥梁。在一些情况下,为了提高Java程序的性能,扩展Java程序的功能,我们需要使用JNI。比如数据库的调用,当我们下载一个JDBC的jar包之后,解压可以看到里面包含...
分类:
移动开发 时间:
2014-09-17 10:30:12
阅读次数:
298
迭代器设计模式广泛用于集合中的遍历
这里主要用到了内部类
以下是简化的的一个迭代器的设计模式
1.Iterator接口
public interface Iterator {
boolean hasNext();
E next();
}
2.内部类
public class Outer {
private Object[] item;
private int size ...
分类:
其他好文 时间:
2014-09-16 22:09:01
阅读次数:
217
在tomcat作为容器发布webservice服务前,我们先来看一个简单的不通过容器即可发布服务的例子
package com.tree.webservice;
import javax.jws.WebService;
@WebService
public interface HelloWorld {
public String sayHello(String content);
}...
分类:
Web程序 时间:
2014-09-16 16:03:30
阅读次数:
786
指定服务器的装机配置指定服务器就是绑定它的mac地址,并设置好ip、dns、hostname定义系统[root@master~]#cobblersystemadd--name=Test_Mail_1--hostname=Test_Mail_o--mac=00:19:B9:E5:34:FE--interface=eth0--ip-address=192.168.10.222--subnet=255.255.255.0--gateway=192...
分类:
其他好文 时间:
2014-09-16 12:50:01
阅读次数:
350
我们在实现接口时,常常是类继承接口,然后在接口中实现相应的方法。代码如下:
interface IOutput
{
void output();
}
class SimpleOutput : IOutput
{
public void output()
{
Console.WriteLin...
分类:
其他好文 时间:
2014-09-16 09:17:50
阅读次数:
142
最近接触了几个刚入门的iOS学习者,他们之中存在一个普遍和困惑和疑问,就是应该如何制作UI界面。iOS应用是非常重视用户体验的,可以说绝大多数的应用成功与否与交互设计以及UI是否漂亮易用有着非常大的关系。而随着iOS开发发展至今,可以说在UI制作上大家逐渐分化为了三种主要流派:使用代码手写UI及布局...
分类:
其他好文 时间:
2014-09-16 08:06:40
阅读次数:
287
一,1.网络配置基本命令(1)查看本地网卡:ifconfig-aif(interface)-a(all)(2)激活网卡:ifconfigeth0up/down启用或者禁用网卡(3)DHCP网络自动获取IP:dhclienteth0(4)手动设置IP:ifconfigeth0IPnetmask子网掩码动态主机分配协议,必须启用DHCP才可以(5)设置网关:routeadddefau..
分类:
其他好文 时间:
2014-09-16 02:51:20
阅读次数:
195
#import"MainViewController.h"
#import"Student.h"
@interfaceMainViewController()
@end
@implementationMainViewController
-(id)initWithNibName:(NSString*)nibNameOrNilbundle:(NSBundle*)nibBundleOrNil
{
self=[superinitWithNibName:nibNameOrNilbundle:nibBundleOrN..
分类:
其他好文 时间:
2014-09-16 02:50:00
阅读次数:
181