public class GpiWriter extends Object
Constructor and Description |
---|
GpiWriter(PrintWriter pw,
double version) |
Modifier and Type | Method and Description |
---|---|
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(BioentityDocument document) |
void |
write(Collection<Bioentity> bioentities)
Write a full GAF.
|
void |
writeHeader(Collection<Bioentity> bioentities)
Write a header of a GPI.
|
void |
writeHeader(List<String> comments,
Collection<Bioentity> bioentities)
Write a header for a GAF, header comments are optional.
|
public GpiWriter(PrintWriter pw, double version)
pw
- version
- public void write(BioentityDocument document)
public void write(Collection<Bioentity> bioentities)
bioentities
- public void writeHeader(Collection<Bioentity> bioentities)
bioentities
- public void writeHeader(List<String> comments, Collection<Bioentity> bioentities)
comments
- bioentities
- protected void print(String s)
s
- protected void end()
GafDocument
has been finished.protected void sep()
protected void nl()
Copyright © 2010-2015. All Rights Reserved.