|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.program.gff.GFFWriter
Listens to a stream of GFF events and writes the lines to a PrintWriter.
This will ignore all exceptions. Perhaps the error-handling needs to move into an error handling interface?
Constructor Summary | |
GFFWriter(java.io.PrintWriter out)
Create a new GFFWriter that will write to out. |
Method Summary | |
void |
commentLine(java.lang.String comment)
Prints the comment directly to the PrintWriter after adding a leading ' # '. |
void |
endDocument()
Flushes the PrintWriter to make sure that everything is written. |
void |
invalidEnd(java.lang.String token,
java.lang.NumberFormatException nfe)
|
void |
invalidFrame(java.lang.String token,
java.lang.NumberFormatException nfe)
|
void |
invalidScore(java.lang.String token,
java.lang.NumberFormatException nfe)
|
void |
invalidStart(java.lang.String token,
java.lang.NumberFormatException nfe)
|
void |
invalidStrand(java.lang.String token)
|
void |
recordLine(GFFRecord record)
Prints record to the PrintWriter. |
void |
startDocument(java.lang.String locator)
Indicates that a new GFF document has been started. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GFFWriter(java.io.PrintWriter out)
out
- the PrintWriter to write toMethod Detail |
public void startDocument(java.lang.String locator)
GFFDocumentHandler
startDocument
in interface GFFDocumentHandler
locator
- A URI for the stream being parsed.public void endDocument()
endDocument
in interface GFFDocumentHandler
public void commentLine(java.lang.String comment)
#
'.
commentLine
in interface GFFDocumentHandler
comment
- the comment Stringpublic void recordLine(GFFRecord record)
recordLine
in interface GFFDocumentHandler
record
- the GFFRecord containing all the infopublic void invalidStart(java.lang.String token, java.lang.NumberFormatException nfe) throws BioException
BioException
public void invalidEnd(java.lang.String token, java.lang.NumberFormatException nfe) throws BioException
BioException
public void invalidScore(java.lang.String token, java.lang.NumberFormatException nfe) throws BioException
BioException
public void invalidStrand(java.lang.String token) throws BioException
BioException
public void invalidFrame(java.lang.String token, java.lang.NumberFormatException nfe) throws BioException
BioException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |