text
Class CSVMaker

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

public class CSVMaker
extends FileMaker

Generates CSV file from the data structure.


Field Summary
private static java.lang.Object item
           
 
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
CSVMaker()
          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.
 
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
 

Field Detail

item

private static java.lang.Object item
Constructor Detail

CSVMaker

public CSVMaker()
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 CSV file.

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