Class LowLevelJsonSerialization
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserializeSerializationBlock
(com.google.gson.JsonElement jsonElement) This will return a lower-level representation of the information stored in JSON.This will return a lower-level representation of the information stored in JSON.This will return a lower-level representation of the information stored in JSON.static SerializedChunk
groupNodesIntoSerializationBlock
(Collection<SerializedClassifierInstance> serializedClassifierInstances, LionWebVersion lionWebVersion) Create a SerializedChunk containing the given nodes.com.google.gson.JsonElement
serializeToJsonElement
(SerializedChunk serializedChunk) serializeToJsonString
(SerializedChunk serializedChunk)
-
Constructor Details
-
LowLevelJsonSerialization
public LowLevelJsonSerialization()
-
-
Method Details
-
deserializeSerializationBlock
This will return a lower-level representation of the information stored in JSON. It is intended to load broken models.Possible usages: repair a broken model, extract a language from the model ("model archeology"), etc.
This method follows a "best-effort" approach, try to limit exception thrown and return data whenever is possible, in the measure that it is possible.
-
deserializeSerializationBlock
This will return a lower-level representation of the information stored in JSON. It is intended to load broken models.Possible usages: repair a broken model, extract a language from the model ("model archeology"), etc.
This method follows a "best-effort" approach, try to limit exception thrown and return data whenever is possible, in the measure that it is possible.
-
deserializeSerializationBlock
This will return a lower-level representation of the information stored in JSON. It is intended to load broken models.Possible usages: repair a broken model, extract a language from the model ("model archeology"), etc.
This method follows a "best-effort" approach, try to limit exception thrown and return data whenever is possible, in the measure that it is possible.
- Throws:
FileNotFoundException
-
serializeToJsonElement
-
serializeToJsonString
-
groupNodesIntoSerializationBlock
public static SerializedChunk groupNodesIntoSerializationBlock(Collection<SerializedClassifierInstance> serializedClassifierInstances, LionWebVersion lionWebVersion) Create a SerializedChunk containing the given nodes.
-