de.mpi_bremen.mgg.FastaValidator
Interface FastaValidatorCallback


public interface FastaValidatorCallback

Interface defining necessary FastaValidator-events. This interface needs to be implemented to react on events occuring during the validation/parsing process. It is passed to the validator-class as a parameter in the constructor. If no reaction is desired NULL can be passed.

Author:
Jost Waldmann

Method Summary
 void commentline(java.lang.String commentline)
          This method is invoked when a commentline occured.
 void eof()
          This method is invoked at the end of file.
 void header(java.lang.String header)
          This method is invoked when a headerline occured.
 void seqline(java.lang.String seqline)
          This method is invoked when a sequenceline occured.
 

Method Detail

header

void header(java.lang.String header)
            throws FastaHandlingException
This method is invoked when a headerline occured.

Parameters:
header - the parsed headerline (including ">")
Throws:
FastaHandlingException

commentline

void commentline(java.lang.String commentline)
                 throws FastaHandlingException
This method is invoked when a commentline occured.

Parameters:
commentline - the parsed commentline (including ";")
Throws:
FastaHandlingException

seqline

void seqline(java.lang.String seqline)
             throws FastaHandlingException
This method is invoked when a sequenceline occured. Please note that this method is called for each line. Normally sequences are distributed over multiple lines.

Parameters:
seqline - the parsed sequenceline
Throws:
FastaHandlingException

eof

void eof()
         throws FastaHandlingException
This method is invoked at the end of file.

Throws:
FastaHandlingException