本文整理汇总了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);
}
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
示例8: CommandServiceCompositeSerializer
import com.google.gwt.user.client.rpc.impl.Serializer; //导入依赖的package包/类
public CommandServiceCompositeSerializer(Collection<Serializer> serializers) {
this.serializers = serializers;
}
示例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;
}
示例10: getSerializer
import com.google.gwt.user.client.rpc.impl.Serializer; //导入依赖的package包/类
public Serializer getSerializer() {
return this.serializer;
}
示例11: StorageSerializationStreamWriter
import com.google.gwt.user.client.rpc.impl.Serializer; //导入依赖的package包/类
public StorageSerializationStreamWriter(Serializer serializer) {
this.serializer = serializer;
}
示例12: getSerializer
import com.google.gwt.user.client.rpc.impl.Serializer; //导入依赖的package包/类
protected abstract Serializer getSerializer();