Package snap.props
Class PropArchiverJS
java.lang.Object
snap.props.PropArchiver
snap.props.PropArchiverJS
A PropArchiver subclass specifically to convert to/from JSON.
-
Nested Class Summary
Nested classes/interfaces inherited from class snap.props.PropArchiver
PropArchiver.Resource
-
Field Summary
Fields inherited from class snap.props.PropArchiver
_helper, CLASS_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreadPropObjectFromJSON
(JSObject objectJS) Reads a PropObject from JSON.readPropObjectFromJSONBytes
(byte[] theBytes) Reads a PropObject from JSON.readPropObjectFromJSONSource
(Object aSource) Reads a PropObject from JSON source.readPropObjectFromJSONString
(String jsonString) Reads a PropObject from JSON String.protected void
readResources
(JSObject anElement) Reads resources fromobjects in given JS (top-level) object, converts from ASCII encoding and adds to archiver. writePropObjectToJSON
(PropObject aPropObject) Converts a PropObject to JSON.Methods inherited from class snap.props.PropArchiver
addClassMapClass, addResource, convertNativeToNode, convertNativeToNodeForPropRelation, convertNativeToNodeForProps, convertNodeToNative, copyPropObject, createClassMap, createPropObjectForClass, createPropObjectForPropNode, getClassForName, getClassMap, getPropObjectClassForPropNode, getResource, getResourceForName, getResources, getRootObject, setRootObject
-
Constructor Details
-
PropArchiverJS
public PropArchiverJS()Constructor.
-
-
Method Details
-
writePropObjectToJSON
Converts a PropObject to JSON. -
readPropObjectFromJSONSource
Reads a PropObject from JSON source. -
readPropObjectFromJSONString
Reads a PropObject from JSON String. -
readPropObjectFromJSONBytes
Reads a PropObject from JSON. -
readPropObjectFromJSON
Reads a PropObject from JSON. -
readResources
Reads resources fromobjects in given JS (top-level) object, converts from ASCII encoding and adds to archiver.
-