Class FeaturesFile

  • All Implemented Interfaces:
    java.lang.Iterable<Features>, java.util.Iterator<Features>
    Direct Known Subclasses:
    EmblFile, GenBankFile

    public abstract class FeaturesFile
    extends java.lang.Object
    implements java.lang.Iterable<Features>, java.util.Iterator<Features>
    A file containing one or more set of features (e.g. multiple chromosomes concatenated in a single file) Reference: http://www.insdc.org/documents/feature-table
    Author:
    pcingola
    • Constructor Summary

      Constructors 
      Constructor Description
      FeaturesFile​(java.lang.String fileName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      java.util.Iterator<Features> iterator()  
      Features next()  
      protected void open​(java.lang.String fileName)
      Open a file
      void remove()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • FeaturesFile

        public FeaturesFile​(java.lang.String fileName)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<Features>
      • iterator

        public java.util.Iterator<Features> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Features>
      • next

        public Features next()
        Specified by:
        next in interface java.util.Iterator<Features>
      • open

        protected void open​(java.lang.String fileName)
        Open a file
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<Features>