Class FileParser

    • Constructor Detail

      • FileParser

        public FileParser​(@NotNull
                          @NotNull InputStream inputStream,
                          @NotNull
                          @NotNull String fileName)
    • Method Detail

      • parse

        public void parse()
                   throws IOException
        Parse the file
        Throws:
        IOException - if anything goes wrong with the parsing
      • readStatement

        public String readStatement()
                             throws IOException
        Read the next statement from the file reader
        Returns:
        the next statement
        Throws:
        IOException - if anything goes wrong with the reading
      • parseName

        public void parseName​(String name)
        Parse the file name
        Parameters:
        name - the name to parse