com.google.gwt.user.client.rpc.SerializationStreamWriter Java Examples
The following examples show how to use
com.google.gwt.user.client.rpc.SerializationStreamWriter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CommandServiceCompositeSerializer.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
@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); }
Example #2
Source File: CommandSerializationStreamFactory.java From putnami-web-toolkit with GNU Lesser General Public License v3.0 | 5 votes |
@Override public SerializationStreamWriter createStreamWriter() { ClientSerializationStreamWriter clientSerializationStreamWriter = new ClientSerializationStreamWriter(this.serializer, this.moduleBaseURL, CommandSerializationStreamFactory.SERIALIZATION_POLICY); clientSerializationStreamWriter.prepareToWrite(); return clientSerializationStreamWriter; }
Example #3
Source File: EventListener.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
/** * Here there is the trick, the Async Service that is usual return by the * deferred binding is also an instance of a SerializationStreamFactory. * That can be used for serialize and deserialize objects * * @param message the message to serialize * * @return the message serialized in a string */ public String serializeMessage(EventMessage message) { try { SerializationStreamFactory factory = (SerializationStreamFactory) GWT .create(WebsocketsMessageService.class); SerializationStreamWriter writer = factory.createStreamWriter(); writer.writeObject(message); final String data = writer.toString(); return data; } catch (final SerializationException e) { Log.error(e.getMessage(), null, e); } return null; }
Example #4
Source File: GeometrySerializer.java From jts with GNU Lesser General Public License v2.1 | 5 votes |
public static void serialize(SerializationStreamWriter streamWriter, Geometry instance) throws SerializationException { WKBWriter writer = sWriter; byte[] wkb = writer.write(instance); String hex = WKBWriter.toHex(wkb); streamWriter.writeString(hex); }
Example #5
Source File: Point_CustomFieldSerializer.java From jts with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void serializeInstance(SerializationStreamWriter streamWriter, Point instance) throws SerializationException { serialize(streamWriter, instance); }
Example #6
Source File: Point_CustomFieldSerializer.java From jts with GNU Lesser General Public License v2.1 | 4 votes |
public static void serialize(SerializationStreamWriter streamWriter, Point instance) throws SerializationException { GeometrySerializer.serialize(streamWriter, instance); }
Example #7
Source File: GeometryCollection_CustomFieldSerializer.java From jts with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void serializeInstance(SerializationStreamWriter streamWriter, GeometryCollection instance) throws SerializationException { serialize(streamWriter, instance); }
Example #8
Source File: GeometryCollection_CustomFieldSerializer.java From jts with GNU Lesser General Public License v2.1 | 4 votes |
public static void serialize(SerializationStreamWriter streamWriter, GeometryCollection instance) throws SerializationException { GeometrySerializer.serialize(streamWriter, instance); }
Example #9
Source File: Polygon_CustomFieldSerializer.java From jts with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void serializeInstance(SerializationStreamWriter streamWriter, Polygon instance) throws SerializationException { serialize(streamWriter, instance); }
Example #10
Source File: Polygon_CustomFieldSerializer.java From jts with GNU Lesser General Public License v2.1 | 4 votes |
public static void serialize(SerializationStreamWriter streamWriter, Polygon instance) throws SerializationException { GeometrySerializer.serialize(streamWriter, instance); }
Example #11
Source File: LinearRing_CustomFieldSerializer.java From jts with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void serializeInstance(SerializationStreamWriter streamWriter, LinearRing instance) throws SerializationException { serialize(streamWriter, instance); }
Example #12
Source File: LinearRing_CustomFieldSerializer.java From jts with GNU Lesser General Public License v2.1 | 4 votes |
public static void serialize(SerializationStreamWriter streamWriter, LinearRing instance) throws SerializationException { GeometrySerializer.serialize(streamWriter, instance); }
Example #13
Source File: MultiLineString_CustomFieldSerializer.java From jts with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void serializeInstance(SerializationStreamWriter streamWriter, MultiLineString instance) throws SerializationException { serialize(streamWriter, instance); }
Example #14
Source File: MultiLineString_CustomFieldSerializer.java From jts with GNU Lesser General Public License v2.1 | 4 votes |
public static void serialize(SerializationStreamWriter streamWriter, MultiLineString instance) throws SerializationException { GeometrySerializer.serialize(streamWriter, instance); }
Example #15
Source File: MultiPolygon_CustomFieldSerializer.java From jts with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void serializeInstance(SerializationStreamWriter streamWriter, MultiPolygon instance) throws SerializationException { serialize(streamWriter, instance); }
Example #16
Source File: MultiPolygon_CustomFieldSerializer.java From jts with GNU Lesser General Public License v2.1 | 4 votes |
public static void serialize(SerializationStreamWriter streamWriter, MultiPolygon instance) throws SerializationException { GeometrySerializer.serialize(streamWriter, instance); }
Example #17
Source File: MultiPoint_CustomFieldSerializer.java From jts with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void serializeInstance(SerializationStreamWriter streamWriter, MultiPoint instance) throws SerializationException { serialize(streamWriter, instance); }
Example #18
Source File: MultiPoint_CustomFieldSerializer.java From jts with GNU Lesser General Public License v2.1 | 4 votes |
public static void serialize(SerializationStreamWriter streamWriter, MultiPoint instance) throws SerializationException { GeometrySerializer.serialize(streamWriter, instance); }
Example #19
Source File: LineString_CustomFieldSerializer.java From jts with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void serializeInstance(SerializationStreamWriter streamWriter, LineString instance) throws SerializationException { serialize(streamWriter, instance); }
Example #20
Source File: LineString_CustomFieldSerializer.java From jts with GNU Lesser General Public License v2.1 | 4 votes |
public static void serialize(SerializationStreamWriter streamWriter, LineString instance) throws SerializationException { GeometrySerializer.serialize(streamWriter, instance); }