public final class NullPointerException_CustomFieldSerializer extends CustomFieldSerializer<NullPointerException>
NullPointerException
.
This is necessary since NullPointerException emul extends JsException which is inconsistent
with server-side.Constructor and Description |
---|
NullPointerException_CustomFieldSerializer() |
Modifier and Type | Method and Description |
---|---|
static void |
deserialize(SerializationStreamReader streamReader,
NullPointerException instance) |
void |
deserializeInstance(SerializationStreamReader streamReader,
NullPointerException instance)
Deserializes the content of the object from the
SerializationStreamReader . |
boolean |
hasCustomInstantiateInstance() |
static NullPointerException |
instantiate(SerializationStreamReader streamReader) |
NullPointerException |
instantiateInstance(SerializationStreamReader streamReader)
Instantiates an object from the
SerializationStreamReader . |
static void |
serialize(SerializationStreamWriter streamWriter,
NullPointerException instance) |
void |
serializeInstance(SerializationStreamWriter streamWriter,
NullPointerException instance)
Serializes the content of the object into the
SerializationStreamWriter . |
public NullPointerException_CustomFieldSerializer()
public static NullPointerException instantiate(SerializationStreamReader streamReader) throws SerializationException
SerializationException
public static void deserialize(SerializationStreamReader streamReader, NullPointerException instance) throws SerializationException
SerializationException
public static void serialize(SerializationStreamWriter streamWriter, NullPointerException instance) throws SerializationException
SerializationException
public boolean hasCustomInstantiateInstance()
hasCustomInstantiateInstance
in class CustomFieldSerializer<NullPointerException>
true
if a specialist CustomFieldSerializer.instantiateInstance(com.google.gwt.user.client.rpc.SerializationStreamReader)
is
implemented; false
otherwisepublic NullPointerException instantiateInstance(SerializationStreamReader streamReader) throws SerializationException
CustomFieldSerializer
SerializationStreamReader
.
Most of the time, this can be left unimplemented and the framework will instantiate the instance itself. This is typically used when the object being deserialized is immutable, hence it has to be created with its state already set.
If this is overridden, the CustomFieldSerializer.hasCustomInstantiateInstance()
method
must return true
in order for the framework to know to call
it.
instantiateInstance
in class CustomFieldSerializer<NullPointerException>
streamReader
- the SerializationStreamReader
to read the
object's content fromSerializationStreamReader
SerializationException
- if the instantiation operation is not
successfulpublic void deserializeInstance(SerializationStreamReader streamReader, NullPointerException instance) throws SerializationException
CustomFieldSerializer
SerializationStreamReader
.deserializeInstance
in class CustomFieldSerializer<NullPointerException>
streamReader
- the SerializationStreamReader
to read the
object's content frominstance
- the object instance to deserializeSerializationException
- if the deserialization operation is not
successfulpublic void serializeInstance(SerializationStreamWriter streamWriter, NullPointerException instance) throws SerializationException
CustomFieldSerializer
SerializationStreamWriter
.serializeInstance
in class CustomFieldSerializer<NullPointerException>
streamWriter
- the SerializationStreamWriter
to write the
object's content toinstance
- the object instance to serializeSerializationException
- if the serialization operation is not
successfulCopyright © 2018. All rights reserved.