当前位置: 首页>>代码示例>>Java>>正文


Java Serializer类代码示例

本文整理汇总了Java中com.google.gwt.user.client.rpc.impl.Serializer的典型用法代码示例。如果您正苦于以下问题:Java Serializer类的具体用法?Java Serializer怎么用?Java Serializer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Serializer类属于com.google.gwt.user.client.rpc.impl包,在下文中一共展示了Serializer类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SyncClientSerializationStreamWriter

import com.google.gwt.user.client.rpc.impl.Serializer; //导入依赖的package包/类
public SyncClientSerializationStreamWriter(Serializer serializer,
		String moduleBaseURL, String serializationPolicyStrongName,
		SerializationPolicy serializationPolicy, RpcToken rpcToken) {
	this.serializer = serializer;
	this.moduleBaseURL = moduleBaseURL;
	this.serializationPolicyStrongName = serializationPolicyStrongName;
	this.serializationPolicy = serializationPolicy;
	this.rpcToken = rpcToken;
	if (rpcToken != null) {
		addFlags(FLAG_RPC_TOKEN_INCLUDED);
	}
}
 
开发者ID:jcricket,项目名称:gwt-syncproxy,代码行数:13,代码来源:SyncClientSerializationStreamWriter.java

示例2: getSerializationSignature

import com.google.gwt.user.client.rpc.impl.Serializer; //导入依赖的package包/类
@Override
public String getSerializationSignature(Class<?> clazz) {
	for (Serializer serializer : this.serializers) {
		String signature = serializer.getSerializationSignature(clazz);
		if (signature != null) {
			return signature;
		}
	}
	return null;
}
 
开发者ID:Putnami,项目名称:putnami-web-toolkit,代码行数:11,代码来源:CommandServiceCompositeSerializer.java

示例3: instantiate

import com.google.gwt.user.client.rpc.impl.Serializer; //导入依赖的package包/类
@Override
public Object instantiate(SerializationStreamReader stream, String typeSignature) throws SerializationException {
	for (Serializer serializer : this.serializers) {
		try {
			Object o = serializer.instantiate(stream, typeSignature);
			if (o != null) {
				return o;
			}
		} catch (SerializationException e) {
			continue;
		}
	}
	throw new SerializationException(typeSignature);
}
 
开发者ID:Putnami,项目名称:putnami-web-toolkit,代码行数:15,代码来源:CommandServiceCompositeSerializer.java

示例4: serialize

import com.google.gwt.user.client.rpc.impl.Serializer; //导入依赖的package包/类
@Override
public void serialize(SerializationStreamWriter stream, Object instance, String typeSignature)
	throws SerializationException {
	for (Serializer serializer : this.serializers) {
		try {
			serializer.serialize(stream, instance, typeSignature);
			return;
		} catch (SerializationException e) {
			continue;
		}
	}
	throw new SerializationException(typeSignature);
}
 
开发者ID:Putnami,项目名称:putnami-web-toolkit,代码行数:14,代码来源:CommandServiceCompositeSerializer.java

示例5: deserialize

import com.google.gwt.user.client.rpc.impl.Serializer; //导入依赖的package包/类
@Override
public void deserialize(SerializationStreamReader stream, Object instance, String typeSignature)
	throws SerializationException {
	for (Serializer serializer : this.serializers) {
		try {
			serializer.deserialize(stream, instance, typeSignature);
			return;
		} catch (SerializationException e) {
			continue;
		}
	}
	throw new SerializationException(typeSignature);
}
 
开发者ID:Putnami,项目名称:putnami-web-toolkit,代码行数:14,代码来源:CommandServiceCompositeSerializer.java

示例6: CommandParam

import com.google.gwt.user.client.rpc.impl.Serializer; //导入依赖的package包/类
public CommandParam(boolean lazy, boolean quiet, Serializer serializer, List params, List callbacks) {
	super();
	this.lazy = lazy;
	this.quiet = quiet;
	this.serializer = serializer;
	this.params = params;
	this.callbacks = callbacks;
}
 
开发者ID:Putnami,项目名称:putnami-web-toolkit,代码行数:9,代码来源:CommandParam.java

示例7: GwtRpcProxy

import com.google.gwt.user.client.rpc.impl.Serializer; //导入依赖的package包/类
public GwtRpcProxy(String moduleBaseURL, String remoteServiceRelativePath, String serializationPolicyName, Serializer serializer) {
	super(moduleBaseURL, remoteServiceRelativePath, serializationPolicyName, serializer);
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:4,代码来源:GwtRpcProxy.java

示例8: CommandServiceCompositeSerializer

import com.google.gwt.user.client.rpc.impl.Serializer; //导入依赖的package包/类
public CommandServiceCompositeSerializer(Collection<Serializer> serializers) {
	this.serializers = serializers;
}
 
开发者ID:Putnami,项目名称:putnami-web-toolkit,代码行数:4,代码来源:CommandServiceCompositeSerializer.java

示例9: CommandSerializationStreamFactory

import com.google.gwt.user.client.rpc.impl.Serializer; //导入依赖的package包/类
public CommandSerializationStreamFactory(Serializer serializer, String moduleBaseURL) {
	super();
	this.serializer = serializer;
	this.moduleBaseURL = moduleBaseURL;
}
 
开发者ID:Putnami,项目名称:putnami-web-toolkit,代码行数:6,代码来源:CommandSerializationStreamFactory.java

示例10: getSerializer

import com.google.gwt.user.client.rpc.impl.Serializer; //导入依赖的package包/类
public Serializer getSerializer() {
	return this.serializer;
}
 
开发者ID:Putnami,项目名称:putnami-web-toolkit,代码行数:4,代码来源:CommandParam.java

示例11: StorageSerializationStreamWriter

import com.google.gwt.user.client.rpc.impl.Serializer; //导入依赖的package包/类
public StorageSerializationStreamWriter(Serializer serializer) {
  this.serializer = serializer;
}
 
开发者ID:seanchenxi,项目名称:gwt-storage,代码行数:4,代码来源:StorageSerializationStreamWriter.java

示例12: getSerializer

import com.google.gwt.user.client.rpc.impl.Serializer; //导入依赖的package包/类
protected abstract Serializer getSerializer(); 
开发者ID:rzschech,项目名称:gwt-comet,代码行数:2,代码来源:CometSerializer.java


注:本文中的com.google.gwt.user.client.rpc.impl.Serializer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。