public class UnknownSerializedType extends Object
|Constructor and Description|
Initialize the unknown type, using given
|Modifier and Type||Method and Description|
Returns the data contained in the serialized object in the given
Returns the type of the serialized object, for which no class could be resolved.
Indicates whether the given
public UnknownSerializedType(Serializer serializer, SerializedObject<?> serializedObject)
serializer- the serializer attempting to deserialize the object
serializedObject- the object being deserialized
public <T> boolean supportsFormat(Class<T> desiredFormat)
desiredFormatis supported as a representation for this type. More specifically, it will consult the serializer that returned this instance whether it has a converter to convert the serialized object's data to the desired type
T- the format in which the serialized object is desired
desiredFormat- the format in which the serialized object is desired
trueif the format is supported, otherwise
public <T> T readData(Class<T> desiredFormat)
desiredFormat, if supported. If the desired format is unsupported, an exception is thrown, depending on the serializer.
To verify whether a format is supported, use
T- the format in which the data is desired
desiredFormat- the format in which the data is desired
public SerializedType serializedType()
Copyright © 2010–2020. All rights reserved.