|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface which captures any errors which occur when parsing a GFF stream. Providing a custom implementation of this interface allows intelligent recovery from errors when parsing GFF.
Each of these methods has three options:
Nested Class Summary | |
static class |
GFFErrorHandler.AbortErrorHandler
|
static class |
GFFErrorHandler.SkipRecordErrorHandler
|
Field Summary | |
static GFFErrorHandler |
ABORT_PARSING
|
static GFFErrorHandler |
SKIP_RECORD
|
Method Summary | |
int |
invalidEnd(java.lang.String token)
The `end' field of the GFF entry was not a valid value. |
int |
invalidFrame(java.lang.String token)
The `frame' field of the GFF entry was not a valid value. |
double |
invalidScore(java.lang.String token)
The `score' field of the GFF entry was not a valid value. |
int |
invalidStart(java.lang.String token)
The `start' field of the GFF entry was not a valid value. |
StrandedFeature.Strand |
invalidStrand(java.lang.String token)
The `strand' field of the GFF entry was not a valid value. |
Field Detail |
public static final GFFErrorHandler ABORT_PARSING
public static final GFFErrorHandler SKIP_RECORD
Method Detail |
public int invalidStart(java.lang.String token) throws ParserException, IgnoreRecordException
token
- The start token found.
ParserException
- If parsing should be aborted
IgnoreRecordException
- If this record should be silently skipped.public int invalidEnd(java.lang.String token) throws ParserException, IgnoreRecordException
token
- The end token found.
ParserException
- If parsing should be aborted
IgnoreRecordException
- If this record should be silently skipped.public double invalidScore(java.lang.String token) throws ParserException, IgnoreRecordException
token
- The score token found.
ParserException
- If parsing should be aborted
IgnoreRecordException
- If this record should be silently skipped.public int invalidFrame(java.lang.String token) throws ParserException, IgnoreRecordException
token
- The frame token found.
ParserException
- If parsing should be aborted
IgnoreRecordException
- If this record should be silently skipped.public StrandedFeature.Strand invalidStrand(java.lang.String token) throws ParserException, IgnoreRecordException
token
- The strand token found.
ParserException
- If parsing should be aborted
IgnoreRecordException
- If this record should be silently skipped.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |