public final class CSVImporter extends Object
Modifier and Type | Method and Description |
---|---|
static NodeSpecification |
importNodeSpecification(File jsonFile)
This imports a NodeSpecification from a JSON file.
|
static NodeSpecification |
importNodeSpecification(Reader reader)
This imports a NodeSpecification from a Reader.
|
static NodeSpecification |
importNodeSpecification(String jsonFileName)
This imports a NodeSpecification from a JSON file.
|
static Sequence |
importSequence(NodeSpecification nodeSpec,
File csvFile)
This imports a sequence from a CSV file using the default delimiter "\t".
|
static Sequence |
importSequence(NodeSpecification nodeSpec,
File csvFile,
String valueDelimiterString)
This imports a sequence from a CSV file using the given delimiter string.
|
static Sequence |
importSequence(NodeSpecification nodeSpec,
Reader in)
This imports a sequence from a Reader using the default delimiter "\t".
|
static Sequence |
importSequence(NodeSpecification nodeSpec,
Reader in,
String valueDelimiterString)
This imports a sequence from a Reader containing CSV data using the
given delimiter string.
|
static Sequence |
importSequence(NodeSpecification nodeSpec,
String csvFileName)
This imports a sequence from a CSV file using the default delimiter "\t".
|
static Sequence |
importSequence(NodeSpecification nodeSpec,
String csvFileName,
String valueDelimiterString)
This imports a sequence from a CSV file using the given delimiter string.
|
public static NodeSpecification importNodeSpecification(String jsonFileName) throws IOException
jsonFileName
- a file with JSON content describing a
NodeSpecification.IOException
- is thrown if the File can't be opened or if something
with the data format is not correct.public static NodeSpecification importNodeSpecification(File jsonFile) throws IOException
jsonFile
- a file with JSON content describing a NodeSpecification.IOException
- is thrown if the File can't be opened or if something
with the data format is not correct.public static NodeSpecification importNodeSpecification(Reader reader) throws IOException
reader
- a Reader containing JSON data describing a
NodeSpecification.IOException
- is thrown if the File can't be opened or if something
with the data format is not correct.public static Sequence importSequence(NodeSpecification nodeSpec, String csvFileName) throws IOException
nodeSpec
- NodeSpecification for the sequence defined in the CSV.csvFileName
- The CSV File to be imported.IOException
- is thrown if the File can't be opened or if something
with the data format is not correct.public static Sequence importSequence(NodeSpecification nodeSpec, File csvFile) throws IOException
nodeSpec
- NodeSpecification for the sequence defined in the CSV.csvFile
- The CSV File to be imported.IOException
- is thrown if the File can't be opened or if something
with the data format is not correct.public static Sequence importSequence(NodeSpecification nodeSpec, Reader in) throws IOException
nodeSpec
- NodeSpecification for the sequence defined in the CSV.in
- the Reader from which the CSV data should be read.IOException
- is thrown if the File can't be opened or if something
with the data format is not correct.public static Sequence importSequence(NodeSpecification nodeSpec, String csvFileName, String valueDelimiterString) throws IOException
nodeSpec
- NodeSpecification for the sequence defined in the CSV.csvFileName
- The CSV File to be imported.valueDelimiterString
- The delimiter String between values in CSV.
(Default is "\t", i.e. a tabstop.)IOException
- is thrown if the File can't be opened or if something
with the data format is not correct.public static Sequence importSequence(NodeSpecification nodeSpec, File csvFile, String valueDelimiterString) throws IOException
nodeSpec
- NodeSpecification for the sequence defined in the CSV.csvFile
- The CSV File to be imported.valueDelimiterString
- The delimiter String between values in CSV.
(Default is "\t", i.e. a tabstop.)IOException
- is thrown if the File can't be opened or if something
with the data format is not correct.public static Sequence importSequence(NodeSpecification nodeSpec, Reader in, String valueDelimiterString) throws IOException
nodeSpec
- NodeSpecification for the sequence defined in the CSV.in
- The Reader from which to read CSV data.valueDelimiterString
- The delimiter String between values in CSV.
(Default is "\t", i.e. a tabstop.)IOException
- is thrown if the File can't be opened or if something
with the data format is not correct.Copyright (C) 2016 Benjamin Paaßen, 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/