public class TSVWriter extends Object
| Constructor and Description |
|---|
TSVWriter(File file)
constructor take a file
|
TSVWriter(String path)
constructor take a string as a path
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
flushes and closes the writer
|
void |
write(Collection<String> values)
writes arbitrary list of values into a tsv line
|
void |
write(String... values)
writes arbitrary list of values into a tsv line
|
void |
write(String arg1,
String relation,
String arg2)
the main method to write facts as arg1 tab relation tab arg2
|
void |
write(String pattern,
String method,
String[] factResults)
the main method to write facts as arg1 tab relation tab arg2
|
public TSVWriter(String path) throws IOException
path - IOExceptionpublic TSVWriter(File file) throws IOException
file - IOExceptionpublic void write(String arg1, String relation, String arg2) throws IOException
arg1 - relation - arg2 - IOExceptionpublic void write(String pattern, String method, String[] factResults) throws IOException
pattern - method - factResults - IOExceptionpublic void write(String... values) throws IOException
IOException - in case writing to the tsv file failspublic void write(Collection<String> values) throws IOException
IOException - in case writing to the tsv file failspublic void close()
throws IOException
IOExceptionCopyright © 2018. All rights reserved.