Package org.qdl_lang.workspace
Class WSJSONSerializer
- java.lang.Object
-
- org.qdl_lang.workspace.WSJSONSerializer
-
public class WSJSONSerializer extends Object
Created by Jeff Gaynor
on 11/28/23 at 3:33 PM
-
-
Constructor Summary
Constructors Constructor Description WSJSONSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Module
createModule(net.sf.json.JSONObject json)
WorkspaceCommands
fromJSON(byte[] bytes, boolean compressionOn)
Assumes the bytes represent either a compressed stream or not.WorkspaceCommands
fromJSON(InputStream inputStream, boolean compressionOn)
Assumes input stream is a gzipped stream of bytes.WorkspaceCommands
fromJSON(String rawJSON)
WorkspaceCommands
fromJSON(net.sf.json.JSONObject json)
net.sf.json.JSONObject
toJSON(WorkspaceCommands workspaceCommands)
-
-
-
Method Detail
-
fromJSON
public WorkspaceCommands fromJSON(InputStream inputStream, boolean compressionOn) throws Throwable
Assumes input stream is a gzipped stream of bytes.- Parameters:
inputStream
-compressionOn
-- Returns:
- Throws:
Throwable
-
fromJSON
public WorkspaceCommands fromJSON(byte[] bytes, boolean compressionOn) throws Throwable
Assumes the bytes represent either a compressed stream or not.- Parameters:
bytes
-- Returns:
- Throws:
Throwable
-
fromJSON
public WorkspaceCommands fromJSON(String rawJSON) throws Throwable
- Throws:
Throwable
-
fromJSON
public WorkspaceCommands fromJSON(net.sf.json.JSONObject json) throws Throwable
- Throws:
Throwable
-
toJSON
public net.sf.json.JSONObject toJSON(WorkspaceCommands workspaceCommands) throws Throwable
- Throws:
Throwable
-
createModule
public Module createModule(net.sf.json.JSONObject json)
-
-