Class GenBank

  • All Implemented Interfaces:
    java.lang.Iterable<Feature>

    public class GenBank
    extends Features
    A class representing the same data as a GenBank file (a 'GB' file) References: http://www.ncbi.nlm.nih.gov/Sitemap/samplerecord
    Author:
    pablocingolani
    • Field Detail

    • Constructor Detail

      • GenBank

        public GenBank​(java.lang.String fileName)
        Create a Genbank record from a 'GB' file
    • Method Detail

      • isNewFeature

        protected boolean isNewFeature​(java.lang.String line)
        Has this line a new feature?
        Specified by:
        isNewFeature in class Features
      • parseFieldLine

        protected void parseFieldLine​(java.lang.String name,
                                      java.lang.String valueOri,
                                      int fieldLineNum,
                                      int fileLineNum)
        Parse a feature line
      • readFile

        public void readFile()
        Load and parse the contents of a data file
        Specified by:
        readFile in class Features