text
Class JSONGetter

java.lang.Object
  extended by text.FileGetter
      extended by text.JSONGetter
All Implemented Interfaces:
FileGetterInterface, TextConstants

public class JSONGetter
extends FileGetter

Retrieves data from a JSON file saved in TextConvertor format into the data structure.


Field Summary
private static java.lang.String content
           
 
Fields inherited from class text.FileGetter
counter
 
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
JSONGetter()
          Default constructor.
 
Method Summary
 void addColumnNames()
          Adds column names to the content string.
 void addData()
          Adds the data contained in the JSON file to the CSV string.
 java.lang.String makeCSVString(java.lang.String content_)
          Constructs a string representing CSV file from the JSON file content.
 
Methods inherited from class text.FileGetter
appendToCSV, appendToValue, clearCSV, clearValue, getCSV, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

private static java.lang.String content
Constructor Detail

JSONGetter

public JSONGetter()
Default constructor.

Method Detail

makeCSVString

public java.lang.String makeCSVString(java.lang.String content_)
Constructs a string representing CSV file from the JSON file content.

Parameters:
content_ - - JSON file content.
Returns:
getCSV - a string representing CSV.

addColumnNames

public void addColumnNames()
Adds column names to the content string.


addData

public void addData()
Adds the data contained in the JSON file to the CSV string.