public class GFFParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GFFParser.GFFVersion
Enum type for describing the GFF version
|
Constructor and Description |
---|
GFFParser(File file)
Initialize with a file, gzip compression is automatically recognized.
|
GFFParser(InputStream stream)
Initialize from a
InputStream , gzip compression is automatically recognized. |
Modifier and Type | Method and Description |
---|---|
GFFParser.GFFVersion |
getGFFVersion() |
FeatureRecord |
next()
Reads next record from the GFF file and return it,
null when the file is at its end. |
public GFFParser(File file) throws IOException
file
- The file to read fromIOException
- on I/O problemspublic GFFParser(InputStream stream) throws IOException
InputStream
, gzip compression is automatically recognized.stream
- InputStream
to read fromIOException
- on I/O problemspublic FeatureRecord next() throws IOException
null
when the file is at its end.null
IOException
- on problems with reading the GFF filespublic GFFParser.GFFVersion getGFFVersion()
Copyright © 2016. All rights reserved.