text
Class JSONMaker

java.lang.Object
  extended by text.FileMaker
      extended by text.JSONMaker
All Implemented Interfaces:
FileMakerInterface, TextConstants

public class JSONMaker
extends FileMaker

Makes JSON file from the data structure.


Field Summary
 
Fields inherited from interface text.TextConstants
COMMA, CREATED_BY_ZYX, DELIM, DOUBLE_QUOTE, ELEMENT_DOCUMENT, ELEMENT_ITEM, EMPTY, FALSE, FORWARD_SLASH, FOUR_SPACES, ID_EQUALS, JAVA_LANG_STRING, LEFT_ANGLE, LEFT_BRACE, LEFT_BRACKET, MENU_ONE, MENU_TWO, NEW_LINE, ONE, RIGHT_ANGLE, RIGHT_BRACE, RIGHT_BRACKET, SEMICOLON, SINGLE_QUOTE, SPACE, TRUE, TWO, XML_VERSION, ZERO
 
Constructor Summary
JSONMaker()
          Default constructor
 
Method Summary
 java.lang.String serialise(java.lang.Object[] columnNames, java.util.List<java.util.List<java.lang.Object>> data)
          Converts the two-dimensional data structure collection to a string representing a JSON file.
 
Methods inherited from class text.FileMaker
addNextComponent, getSerialisedFile, indent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONMaker

public JSONMaker()
Default constructor

Method Detail

serialise

public java.lang.String serialise(java.lang.Object[] columnNames,
                                  java.util.List<java.util.List<java.lang.Object>> data)
Converts the two-dimensional data structure collection to a string representing a JSON file.

Parameters:
columnNames - - names for the columns.
data - - list of the data structure.
Returns:
string to be written to file in FileIO