public final class CSVExporter extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DELIMITER |
Modifier and Type | Method and Description |
---|---|
static void |
exportNodeSpecification(NodeSpecification nodeSpec,
File jsonFile)
This exports a NodeSpecification to a JSON file.
|
static void |
exportNodeSpecification(NodeSpecification nodeSpec,
String jsonFileName)
This exports a NodeSpecification to a JSON file.
|
static void |
exportNodeSpecification(NodeSpecification nodeSpec,
Writer out)
This exports a NodeSpecification to a Writer.
|
static void |
exportSequence(Sequence seq,
File csvFile)
This exports a sequence to a file of comma-separated values (CSV).
|
static void |
exportSequence(Sequence seq,
File csvFile,
String valueDelimiterCharacter)
This exports a sequence to a CSV file, with a specified delimiter-string.
|
static void |
exportSequence(Sequence seq,
String csvFileName)
This exports a sequence to a file of comma-separated values (CSV).
|
static void |
exportSequence(Sequence seq,
String csvFileName,
String valueDelimiterCharacter)
This exports a sequence to a CSV file, with a specified delimiter-string.
|
static void |
exportSequence(Sequence seq,
Writer out)
This exports a sequence to a Writer as CSV data.
|
static void |
exportSequence(Sequence seq,
Writer out,
String valueDelimiterCharacter)
This exports a sequence to a CSV file, with a specified delimiter-string.
|
public static final String DEFAULT_DELIMITER
public static void exportNodeSpecification(NodeSpecification nodeSpec, String jsonFileName) throws IOException
nodeSpec
- The NodeSpecification to be exported.jsonFileName
- The JSON File to write the NodeSpecification to.
(Note that any existing file with the same name will be overridden.)IOException
public static void exportNodeSpecification(NodeSpecification nodeSpec, File jsonFile) throws IOException
nodeSpec
- The NodeSpecification to be exported.jsonFile
- The JSON File to write the NodeSpecification to.
(Note that any existing file with the same name will be overridden.)IOException
public static void exportNodeSpecification(NodeSpecification nodeSpec, Writer out) throws IOException
nodeSpec
- The NodeSpecification to be exported.out
- The Writer the JSON content shall be written to.IOException
public static void exportSequence(Sequence seq, String csvFileName) throws IOException
seq
- The Sequence to be exported.csvFileName
- The CSV File, where a name ending with ".csv" is
advised.IOException
public static void exportSequence(Sequence seq, File csvFile) throws IOException
seq
- The Sequence to be exported.csvFile
- The CSV File, where a name ending with ".csv" is advised.IOException
public static void exportSequence(Sequence seq, Writer out) throws IOException
seq
- The Sequence to be exported.out
- The Writer to which the output CSV data should be written.IOException
public static void exportSequence(Sequence seq, String csvFileName, String valueDelimiterCharacter) throws IOException
seq
- The Sequence to be exported.csvFileName
- The CSV File, where a name ending with ".csv" is
advised.valueDelimiterCharacter
- A String as delimiter between values.
(Default is "\t", i.e. a tabstop.)IOException
public static void exportSequence(Sequence seq, File csvFile, String valueDelimiterCharacter) throws IOException
seq
- The Sequence to be exported.csvFile
- The CSV File, where a name ending with ".csv" is advised.valueDelimiterCharacter
- A String as delimiter between values.
(Default is "\t", i.e. a tabstop.)IOException
public static void exportSequence(Sequence seq, Writer out, String valueDelimiterCharacter) throws IOException
seq
- The Sequence to be exported.out
- The Writer to which the output CSV data should be written.valueDelimiterCharacter
- A String as delimiter between values.
(Default is "\t", i.e. a tabstop.)IOException
Copyright (C) 2013-2015 Benjamin Paaßen, Georg Zentgraf, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/