Interface ParserProcessor


public interface ParserProcessor
Processor for custom parser.
Since:
2.0.0
  • Method Details

    • getTableDefinition

      List<ParserTableDefinition> getTableDefinition(TableDefinitionContext context) throws IOException
      Returns the table definitions for the custom parser.
      Parameters:
      context - Table definition context of the custom parser
      Returns:
      List of table definitions
      Throws:
      IOException - if an I/O error occurs reading from the file
    • getRowIterator

      ClosableIterator<List<String>> getRowIterator(RowIteratorContext context) throws IOException
      Returns the row iterator of the custom parser.
      Parameters:
      context - Row iterator context of the custom parser
      Returns:
      Closable iterator of the each parsed line
      Throws:
      IOException - if an I/O error occurs reading from the file