public class GFFWriter extends Object implements GFFDocumentHandler
This will ignore all exceptions. Perhaps the error-handling needs to move into an error handling interface?
| Constructor and Description |
|---|
GFFWriter(PrintWriter out)
Create a new GFFWriter that will write to
out.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commentLine(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(String token,
NumberFormatException nfe) |
void |
invalidFrame(String token,
NumberFormatException nfe) |
void |
invalidScore(String token,
NumberFormatException nfe) |
void |
invalidStart(String token,
NumberFormatException nfe) |
void |
invalidStrand(String token) |
void |
recordLine(GFFRecord record)
Prints record to the PrintWriter.
|
void |
startDocument(String locator)
Indicates that a new GFF document has been started.
|
public GFFWriter(PrintWriter out)
out - the PrintWriter to write topublic void startDocument(String locator)
GFFDocumentHandlerstartDocument in interface GFFDocumentHandlerlocator - A URI for the stream being parsed.public void endDocument()
endDocument in interface GFFDocumentHandlerpublic void commentLine(String comment)
#'.commentLine in interface GFFDocumentHandlercomment - the comment Stringpublic void recordLine(GFFRecord record)
recordLine in interface GFFDocumentHandlerrecord - the GFFRecord containing all the infopublic void invalidStart(String token, NumberFormatException nfe) throws BioException
BioExceptionpublic void invalidEnd(String token, NumberFormatException nfe) throws BioException
BioExceptionpublic void invalidScore(String token, NumberFormatException nfe) throws BioException
BioExceptionpublic void invalidStrand(String token) throws BioException
BioExceptionpublic void invalidFrame(String token, NumberFormatException nfe) throws BioException
BioExceptionCopyright © 2020 BioJava. All rights reserved.