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


Java SerializationStreamWriter.writeObject方法代码示例

本文整理汇总了Java中com.google.gwt.user.client.rpc.SerializationStreamWriter.writeObject方法的典型用法代码示例。如果您正苦于以下问题:Java SerializationStreamWriter.writeObject方法的具体用法?Java SerializationStreamWriter.writeObject怎么用?Java SerializationStreamWriter.writeObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.gwt.user.client.rpc.SerializationStreamWriter的用法示例。


在下文中一共展示了SerializationStreamWriter.writeObject方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: 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);
    }
  }
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:12,代码来源:Multimap_CustomFieldSerializerBase.java

示例2: 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());
  }
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:10,代码来源:Multiset_CustomFieldSerializerBase.java

示例3: serialize

import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
static void serialize(SerializationStreamWriter writer, StandardTable<?, ?, ?> table)
    throws SerializationException {
  /*
   * The backing map of a {Hash,Tree}BasedTable is a {Hash,Tree}Map of {Hash,Tree}Maps. Therefore,
   * the backing map is serializable (assuming that the row, column and values, along with any
   * comparators, are all serializable).
   */
  writer.writeObject(table.backingMap);
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:10,代码来源:Table_CustomFieldSerializerBase.java

示例4: 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());
  }
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:13,代码来源:LinkedHashMultimap_CustomFieldSerializer.java

示例5: serialize

import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
public static void serialize(SerializationStreamWriter writer, ByFunctionOrdering<?, ?> instance)
    throws SerializationException {
  writer.writeObject(instance.function);
  writer.writeObject(instance.ordering);
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:6,代码来源:ByFunctionOrdering_CustomFieldSerializer.java

示例6: serialize

import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
public static void serialize(SerializationStreamWriter writer, Present<?> instance)
    throws SerializationException {
  writer.writeObject(instance.get());
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:5,代码来源:Present_CustomFieldSerializer.java

示例7: serialize

import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
public static void serialize(SerializationStreamWriter writer, SingletonImmutableSet<?> instance)
    throws SerializationException {
  writer.writeObject(instance.element);
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:5,代码来源:SingletonImmutableSet_CustomFieldSerializer.java

示例8: serialize

import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
public static void serialize(SerializationStreamWriter writer, SingletonImmutableList<?> instance)
    throws SerializationException {
  writer.writeObject(instance.element);
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:5,代码来源:SingletonImmutableList_CustomFieldSerializer.java

示例9: serialize

import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
public static void serialize(
    SerializationStreamWriter writer, ImmutableSetMultimap<?, ?> instance)
    throws SerializationException {
  writer.writeObject(instance.valueComparator());
  Multimap_CustomFieldSerializerBase.serialize(writer, instance);
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:7,代码来源:ImmutableSetMultimap_CustomFieldSerializer.java

示例10: serialize

import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
public static void serialize(SerializationStreamWriter writer, NullsFirstOrdering<?> instance)
    throws SerializationException {
  writer.writeObject(instance.ordering);
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:5,代码来源:NullsFirstOrdering_CustomFieldSerializer.java

示例11: serialize

import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
public static void serialize(SerializationStreamWriter writer, ImmutableEntry<?, ?> instance)
    throws SerializationException {
  writer.writeObject(instance.getKey());
  writer.writeObject(instance.getValue());
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:6,代码来源:ImmutableEntry_CustomFieldSerializer.java

示例12: serialize

import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
public static void serialize(SerializationStreamWriter writer, ReverseOrdering<?> instance)
    throws SerializationException {
  writer.writeObject(instance.forwardOrder);
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:5,代码来源:ReverseOrdering_CustomFieldSerializer.java

示例13: serialize

import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
static void serialize(SerializationStreamWriter writer, ImmutableSortedMap<?, ?> instance)
    throws SerializationException {
  writer.writeObject(instance.comparator());

  Map_CustomFieldSerializerBase.serialize(writer, instance);
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:7,代码来源:ImmutableSortedMap_CustomFieldSerializerBase.java

示例14: serialize

import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
public static void serialize(SerializationStreamWriter out, TreeMultimap<?, ?> multimap)
    throws SerializationException {
  out.writeObject(multimap.keyComparator());
  out.writeObject(multimap.valueComparator());
  Multimap_CustomFieldSerializerBase.serialize(out, multimap);
}
 
开发者ID:paul-hammant,项目名称:googles-monorepo-demo,代码行数:7,代码来源:TreeMultimap_CustomFieldSerializer.java

示例15: serialize

import com.google.gwt.user.client.rpc.SerializationStreamWriter; //导入方法依赖的package包/类
public static void serialize(SerializationStreamWriter writer, ComparatorOrdering<?> instance)
    throws SerializationException {
  writer.writeObject(instance.comparator);
}
 
开发者ID:zugzug90,项目名称:guava-mock,代码行数:5,代码来源:ComparatorOrdering_CustomFieldSerializer.java


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