owltools.gaf.io
Class GpiWriter

java.lang.Object
  extended by owltools.gaf.io.GpiWriter

public class GpiWriter
extends Object


Constructor Summary
GpiWriter(PrintWriter pw, double version)
           
 
Method Summary
protected  void end()
          Called after the writing of a GafDocument has been finished.
protected  void nl()
          Append the separator between rows.
protected  void print(String s)
          Append an arbitrary string.
protected  void sep()
          Append a the separator between columns.
 void write(Bioentity bioentity)
          Write a single Bioentity.
 void write(Iterable<Bioentity> bioentities)
          Write a full GAF.
 void writeHeader()
          Write a header of a GPI.
 void writeHeader(List<String> comments)
          Write a header for a GAF, header comments are optional.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GpiWriter

public GpiWriter(PrintWriter pw,
                 double version)
Parameters:
pw -
version -
Method Detail

write

public void write(Iterable<Bioentity> bioentities)
Write a full GAF.

Parameters:
bioentities -

writeHeader

public void writeHeader()
Write a header of a GPI.


writeHeader

public void writeHeader(List<String> comments)
Write a header for a GAF, header comments are optional.

Parameters:
comments -

write

public void write(Bioentity bioentity)
Write a single Bioentity.

Parameters:
bioentity -

print

protected void print(String s)
Append an arbitrary string.

Parameters:
s -

end

protected void end()
Called after the writing of a GafDocument has been finished.


sep

protected void sep()
Append a the separator between columns.


nl

protected void nl()
Append the separator between rows.



Copyright © 2010-2014. All Rights Reserved.