本文整理汇总了Java中com.google.gwt.user.client.rpc.SerializationStreamWriter.writeInt方法的典型用法代码示例。如果您正苦于以下问题:Java SerializationStreamWriter.writeInt方法的具体用法?Java SerializationStreamWriter.writeInt怎么用?Java SerializationStreamWriter.writeInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.gwt.user.client.rpc.SerializationStreamWriter
的用法示例。
在下文中一共展示了SerializationStreamWriter.writeInt方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: serialize
import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
public static void serialize(
SerializationStreamWriter writer, ImmutableTable<Object, Object, Object> table)
throws SerializationException {
writer.writeInt(table.rowKeySet().size());
for (Object rowKey : table.rowKeySet()) {
writer.writeObject(rowKey);
Map_CustomFieldSerializerBase.serialize(writer, table.row(rowKey));
}
}
示例2: serialize
import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
public static void serialize(SerializationStreamWriter writer, Multimap<?, ?> instance)
throws SerializationException {
writer.writeInt(instance.asMap().size());
for (Map.Entry<?, ? extends Collection<?>> entry : instance.asMap().entrySet()) {
writer.writeObject(entry.getKey());
writer.writeInt(entry.getValue().size());
for (Object value : entry.getValue()) {
writer.writeObject(value);
}
}
}
示例3: serialize
import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
static void serialize(SerializationStreamWriter writer, Multiset<?> instance)
throws SerializationException {
int entryCount = instance.entrySet().size();
writer.writeInt(entryCount);
for (Multiset.Entry<?> entry : instance.entrySet()) {
writer.writeObject(entry.getElement());
writer.writeInt(entry.getCount());
}
}
示例4: serialize
import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
public static void serialize(SerializationStreamWriter out, LinkedListMultimap<?, ?> multimap)
throws SerializationException {
out.writeInt(multimap.size());
for (Map.Entry<?, ?> entry : multimap.entries()) {
out.writeObject(entry.getKey());
out.writeObject(entry.getValue());
}
}
示例5: serialize
import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
public static void serialize(SerializationStreamWriter stream, LinkedHashMultimap<?, ?> multimap)
throws SerializationException {
stream.writeInt(multimap.keySet().size());
for (Object key : multimap.keySet()) {
stream.writeObject(key);
}
stream.writeInt(multimap.size());
for (Map.Entry<?, ?> entry : multimap.entries()) {
stream.writeObject(entry.getKey());
stream.writeObject(entry.getValue());
}
}