text
Class FileGetter

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

public abstract class FileGetter
extends java.lang.Object
implements TextConstants, FileGetterInterface

FileGetter is an abstract class which acts as a meeting point for all classes which wish to open a file.


Field Summary
static int counter
           
private static java.lang.String CSV
           
private static java.lang.String value
           
 
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
FileGetter()
          Constructor.
 
Method Summary
static void appendToCSV(java.lang.String newValue)
          Adds new item to the CSV string.
static void appendToValue(char newValue)
          Adds the new character to the string representing the value of the current item.
static void clearCSV()
          Resets the CSV to empty.
static void clearValue()
          Resets the Value to empty.
static java.lang.String getCSV()
          Getter for CSV
static java.lang.String getValue()
          Getter for value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface text.FileGetterInterface
addColumnNames, addData, makeCSVString
 

Field Detail

CSV

private static java.lang.String CSV

value

private static java.lang.String value

counter

public static int counter
Constructor Detail

FileGetter

public FileGetter()
Constructor. Calls Methods, that reset the CSV and Value Strings to empty.

Method Detail

clearCSV

public static void clearCSV()
Resets the CSV to empty.


appendToValue

public static void appendToValue(char newValue)
Adds the new character to the string representing the value of the current item.

Parameters:
newValue - - new character to be added to the value.

clearValue

public static void clearValue()
Resets the Value to empty.


getValue

public static java.lang.String getValue()
Getter for value

Returns:
value

getCSV

public static java.lang.String getCSV()
Getter for CSV

Returns:
CSV

appendToCSV

public static void appendToCSV(java.lang.String newValue)
Adds new item to the CSV string.

Parameters:
newValue - - String representation of the new item to be added to the CSV string.