Class BasicLineParser<T>

    • Field Detail

      • log

        protected final org.apache.commons.logging.Log log
    • Constructor Detail

      • BasicLineParser

        public BasicLineParser()
    • Method Detail

      • getResults

        public abstract Collection<T> getResults()
        Specified by:
        getResults in interface Parser<T>
        Returns:
        the results of the parse.
      • parse

        public void parse​(File file)
                   throws IOException
        Description copied from interface: Parser
        Parse a File
        Specified by:
        parse in interface Parser<T>
        Parameters:
        file - file
        Throws:
        IOException - if there is a problem while manipulating the file
      • parse

        public void parse​(String filename)
                   throws IOException
        Description copied from interface: Parser
        Parse a file identified by its path.
        Specified by:
        parse in interface Parser<T>
        Parameters:
        filename - Absolute path to the file
        Throws:
        IOException - if there is a problem while manipulating the file
      • addResult

        protected abstract void addResult​(T obj)