Class RMJSONWriter
- java.lang.Object
- 
- com.inductiveautomation.rm.archiver.RMJSONWriter
 
- 
 public class RMJSONWriter extends java.lang.ObjectWrites a JSON to string.
- 
- 
Constructor SummaryConstructors Constructor Description RMJSONWriter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringBufferappend(java.lang.StringBuffer aSB, RMJSONNode aNode)Returns a string buffer for given JSON node.protected java.lang.StringBufferappendNewlineIndent(java.lang.StringBuffer aSB)Appends newline and indent.protected java.lang.StringBufferappendNewlineIndent(java.lang.StringBuffer aSB, int aLevel)Appends newline and indent.java.lang.StringgetIndent()Returns the current indent.java.lang.StringgetString(RMJSONNode aNode)Returns a string for given JSON node.java.lang.StringBuffergetStringBuffer(RMJSONNode aNode)Returns a string buffer for given JSON node.booleanisCompacted()Returns whether writer compacts JSON (no indent or newline).protected booleanisDeep(RMJSONNode aNode)Returns whether given node has child Map or List of Map/List.RMJSONWritersetCompacted(boolean aValue)Sets whether writer compacts JSON (no indent or newline).RMJSONWritersetIndent(java.lang.String anIndent)Sets the current indent string.voidwriteJSON(RMJSONNode aNode, java.lang.String aPath)Writes the given JSON object to given file path.
 
- 
- 
- 
Method Detail- 
getIndentpublic java.lang.String getIndent() Returns the current indent.
 - 
setIndentpublic RMJSONWriter setIndent(java.lang.String anIndent) Sets the current indent string.
 - 
isCompactedpublic boolean isCompacted() Returns whether writer compacts JSON (no indent or newline).
 - 
setCompactedpublic RMJSONWriter setCompacted(boolean aValue) Sets whether writer compacts JSON (no indent or newline).
 - 
getStringpublic java.lang.String getString(RMJSONNode aNode) Returns a string for given JSON node.
 - 
getStringBufferpublic java.lang.StringBuffer getStringBuffer(RMJSONNode aNode) Returns a string buffer for given JSON node.
 - 
appendprotected java.lang.StringBuffer append(java.lang.StringBuffer aSB, RMJSONNode aNode)Returns a string buffer for given JSON node.
 - 
appendNewlineIndentprotected java.lang.StringBuffer appendNewlineIndent(java.lang.StringBuffer aSB) Appends newline and indent.
 - 
appendNewlineIndentprotected java.lang.StringBuffer appendNewlineIndent(java.lang.StringBuffer aSB, int aLevel)Appends newline and indent.
 - 
writeJSONpublic void writeJSON(RMJSONNode aNode, java.lang.String aPath) Writes the given JSON object to given file path.
 - 
isDeepprotected boolean isDeep(RMJSONNode aNode) Returns whether given node has child Map or List of Map/List.
 
- 
 
-