Interface TextFileParser

  • All Known Implementing Classes:
    TextFileParserImpl

    public interface TextFileParser
    A simple parser, that opens an ASCII file and returns all the lines in a list.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> parse​(java.io.File file)
      parses the file and returns all the lines in an ArrayList
    • Method Detail

      • parse

        java.util.List<java.lang.String> parse​(java.io.File file)
                                        throws TextFileParserException
        parses the file and returns all the lines in an ArrayList
        Parameters:
        file - the file to parse
        Returns:
        a list containing strings which represent the lines in the file.
        Throws:
        TextFileParserException - if the parsing is not possible