@Override Object readValue(ServerSerializationStreamReader stream, Type expectedType, DequeMap<TypeVariable<?>, Type> resolvedTypes) throws SerializationException { return stream.readObject(expectedType, resolvedTypes); } },
@Override protected Object readSingleValue(ServerSerializationStreamReader stream) throws SerializationException { return stream.readObject(); }
@Override protected Object readSingleValue(ServerSerializationStreamReader stream, Type expectedType, DequeMap<TypeVariable<?>, Type> resolvedTypes) throws SerializationException { return stream.readObject(expectedType, resolvedTypes); }
public static void deserialize(ServerSerializationStreamReader streamReader, Object[] instance, Type[] expectedParameterTypes, DequeMap<TypeVariable<?>, Type> resolvedTypes) throws SerializationException { for (int itemIndex = 0; itemIndex < instance.length; ++itemIndex) { instance[itemIndex] = streamReader.readObject(expectedParameterTypes[0], resolvedTypes); } }
@Override Object readValue(ServerSerializationStreamReader stream) throws SerializationException { return stream.readObject(); }
public static List instantiate(ServerSerializationStreamReader streamReader, Type[] expectedParameterTypes, DequeMap<TypeVariable<?>, Type> resolvedTypes) throws SerializationException { return java.util.Collections.singletonList(streamReader.readObject(expectedParameterTypes[0], resolvedTypes)); }
@SuppressWarnings({"cast", "unused"}) public static TreeSet instantiate(ServerSerializationStreamReader streamReader, Type[] expectedParameterTypes, DequeMap<TypeVariable<?>, Type> resolvedTypes) throws SerializationException { return new TreeSet((Comparator) streamReader.readObject((Type) Comparator.class, resolvedTypes)); }
@SuppressWarnings("unused") public static TreeMap instantiate(ServerSerializationStreamReader streamReader, Type[] expectedParameterTypes, DequeMap<TypeVariable<?>, Type> resolvedTypes) throws SerializationException { return new TreeMap((Comparator) streamReader.readObject(Comparator.class, resolvedTypes)); }
@SuppressWarnings({"rawtypes", "unchecked"}) public static void deserialize(ServerSerializationStreamReader streamReader, Map instance, Type[] expectedParameterTypes, DequeMap<TypeVariable<?>, Type> resolvedTypes) throws SerializationException { int size = streamReader.readInt(); for (int i = 0; i < size; ++i) { Object key = streamReader.readObject(expectedParameterTypes[0], resolvedTypes); Object value = streamReader.readObject(expectedParameterTypes[1], resolvedTypes); instance.put(key, value); } }
@SuppressWarnings({"rawtypes", "unchecked"}) public static void deserialize(ServerSerializationStreamReader streamReader, Collection instance, Type[] expectedParameterTypes, DequeMap<TypeVariable<?>, Type> resolvedTypes) throws SerializationException { int size = streamReader.readInt(); for (int i = 0; i < size; ++i) { Object obj = streamReader.readObject(expectedParameterTypes[0], resolvedTypes); instance.add(obj); } } }
@Override Object readValue(ServerSerializationStreamReader stream, Type expectedType, DequeMap<TypeVariable<?>, Type> resolvedTypes) throws SerializationException { return stream.readObject(expectedType, resolvedTypes); } },
@Override protected Object readSingleValue(ServerSerializationStreamReader stream) throws SerializationException { return stream.readObject(); }
@Override Object readValue(ServerSerializationStreamReader stream, Type expectedType, DequeMap<TypeVariable<?>, Type> resolvedTypes) throws SerializationException { return stream.readObject(expectedType, resolvedTypes); } },
@Override Object readValue(ServerSerializationStreamReader stream) throws SerializationException { return stream.readObject(); }
@SuppressWarnings({"cast", "unused"}) public static TreeSet instantiate(ServerSerializationStreamReader streamReader, Type[] expectedParameterTypes, DequeMap<TypeVariable<?>, Type> resolvedTypes) throws SerializationException { return new TreeSet((Comparator) streamReader.readObject((Type) Comparator.class, resolvedTypes)); }
@SuppressWarnings({"cast", "unused"}) public static TreeSet instantiate(ServerSerializationStreamReader streamReader, Type[] expectedParameterTypes, DequeMap<TypeVariable<?>, Type> resolvedTypes) throws SerializationException { return new TreeSet((Comparator) streamReader.readObject((Type) Comparator.class, resolvedTypes)); }
public static List instantiate(ServerSerializationStreamReader streamReader, Type[] expectedParameterTypes, DequeMap<TypeVariable<?>, Type> resolvedTypes) throws SerializationException { return java.util.Collections.singletonList(streamReader.readObject(expectedParameterTypes[0], resolvedTypes)); }
@SuppressWarnings({"rawtypes", "unchecked"}) public static void deserialize(ServerSerializationStreamReader streamReader, Collection instance, Type[] expectedParameterTypes, DequeMap<TypeVariable<?>, Type> resolvedTypes) throws SerializationException { int size = streamReader.readInt(); for (int i = 0; i < size; ++i) { Object obj = streamReader.readObject(expectedParameterTypes[0], resolvedTypes); instance.add(obj); } } }
public static List<?> instantiate(ServerSerializationStreamReader streamReader, Type[] expectedParameterTypes, DequeMap<TypeVariable<?>, Type> resolvedTypes) throws SerializationException { Class<?> componentClass = SerializabilityUtil.getClassFromType(expectedParameterTypes[0], resolvedTypes); if (componentClass == null) { return com.google.gwt.user.client.rpc.core.java.util.Arrays.ArrayList_CustomFieldSerializer .instantiate(streamReader); } Object expectedArray = Array.newInstance(componentClass, 0); Object[] array = (Object[]) streamReader.readObject(expectedArray.getClass(), resolvedTypes); return java.util.Arrays.asList(array); }
public static Object deserialize(String data) throws SerializationException { ServerSerializationStreamReader reader = new ServerSerializationStreamReader(Thread.currentThread().getContextClassLoader(), GwtRpcUtil.getSerializationPolicyProvider()); reader.prepareToRead(data); return reader.readObject(); }