javatools.filehandlers
Class TSVWriter

java.lang.Object
  extended by javatools.filehandlers.TSVWriter

public class TSVWriter
extends java.lang.Object


Constructor Summary
TSVWriter(java.io.File file)
          constructor take a file
TSVWriter(java.lang.String path)
          constructor take a string as a path
 
Method Summary
 void close()
          flushes and closes the writer
 void write(java.util.Collection<java.lang.String> values)
          writes arbitrary list of values into a tsv line
 void write(java.lang.String... values)
          writes arbitrary list of values into a tsv line
 void write(java.lang.String arg1, java.lang.String relation, java.lang.String arg2)
          the main method to write facts as arg1 tab relation tab arg2
 void write(java.lang.String pattern, java.lang.String method, java.lang.String[] factResults)
          the main method to write facts as arg1 tab relation tab arg2
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TSVWriter

public TSVWriter(java.lang.String path)
          throws java.io.IOException
constructor take a string as a path

Parameters:
path -
Throws:
java.io.IOException

TSVWriter

public TSVWriter(java.io.File file)
          throws java.io.IOException
constructor take a file

Parameters:
file -
Throws:
java.io.IOException
Method Detail

write

public void write(java.lang.String arg1,
                  java.lang.String relation,
                  java.lang.String arg2)
           throws java.io.IOException
the main method to write facts as arg1 tab relation tab arg2

Parameters:
arg1 -
relation -
arg2 -
Throws:
java.io.IOException

write

public void write(java.lang.String pattern,
                  java.lang.String method,
                  java.lang.String[] factResults)
           throws java.io.IOException
the main method to write facts as arg1 tab relation tab arg2

Parameters:
arg1 -
relation -
arg2 -
Throws:
java.io.IOException

write

public void write(java.lang.String... values)
           throws java.io.IOException
writes arbitrary list of values into a tsv line

Throws:
java.io.IOException - in case writing to the tsv file fails

write

public void write(java.util.Collection<java.lang.String> values)
           throws java.io.IOException
writes arbitrary list of values into a tsv line

Throws:
java.io.IOException - in case writing to the tsv file fails

close

public void close()
           throws java.io.IOException
flushes and closes the writer

Throws:
java.io.IOException