Class RMJSONWriter
java.lang.Object
com.inductiveautomation.rm.archiver.RMJSONWriter
Writes a JSON to string.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringBufferappend(StringBuffer aSB, RMJSONNode aNode) Returns a string buffer for given JSON node.protected StringBufferAppends newline and indent.protected StringBufferappendNewlineIndent(StringBuffer aSB, int aLevel) Appends newline and indent.Returns the current indent.getString(RMJSONNode aNode) Returns a string for given JSON node.getStringBuffer(RMJSONNode aNode) Returns a string buffer for given JSON node.booleanReturns whether writer compacts JSON (no indent or newline).protected booleanisDeep(RMJSONNode aNode) Returns whether given node has child Map or List of Map/List.setCompacted(boolean aValue) Sets whether writer compacts JSON (no indent or newline).Sets the current indent string.voidwriteJSON(RMJSONNode aNode, String aPath) Writes the given JSON object to given file path.
- 
Constructor Details- 
RMJSONWriterpublic RMJSONWriter()
 
- 
- 
Method Details- 
getIndentReturns the current indent.
- 
setIndentSets the current indent string.
- 
isCompactedpublic boolean isCompacted()Returns whether writer compacts JSON (no indent or newline).
- 
setCompactedSets whether writer compacts JSON (no indent or newline).
- 
getStringReturns a string for given JSON node.
- 
getStringBufferReturns a string buffer for given JSON node.
- 
appendReturns a string buffer for given JSON node.
- 
appendNewlineIndentAppends newline and indent.
- 
appendNewlineIndentAppends newline and indent.
- 
writeJSONWrites the given JSON object to given file path.
- 
isDeepReturns whether given node has child Map or List of Map/List.
 
-