org.nlogo.api
Class CSV

java.lang.Object
  extended by org.nlogo.api.CSV

public class CSV
extends Object


Nested Class Summary
static interface CSV.ObjectDumper
           
 
Field Summary
static int CELL_WIDTH
           
static int MAX_COLUMNS
           
 
Constructor Summary
CSV(CSV.ObjectDumper dumper)
           
 
Method Summary
 String blank()
           
 String data(Object obj)
           
 String dataRow(Object[] objs)
           
 String encode(String s)
           
 String header(String s)
           
 String headerRow(String[] strings)
           
 String number(double d)
           
 String number(int i)
           
 void stringToCSV(PrintWriter writer, String text)
           
 String variableNameRow(List<String> v)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CELL_WIDTH

public static final int CELL_WIDTH
See Also:
Constant Field Values

MAX_COLUMNS

public static final int MAX_COLUMNS
See Also:
Constant Field Values
Constructor Detail

CSV

public CSV(CSV.ObjectDumper dumper)
Method Detail

blank

public String blank()

data

public String data(Object obj)

number

public String number(double d)

number

public String number(int i)

dataRow

public String dataRow(Object[] objs)

header

public String header(String s)

headerRow

public String headerRow(String[] strings)

encode

public String encode(String s)

stringToCSV

public void stringToCSV(PrintWriter writer,
                        String text)

variableNameRow

public String variableNameRow(List<String> v)