Interface InputAnalysisProcess
- All Known Implementing Classes:
CsvFormatDetector
,LineSeparatorDetector
public interface InputAnalysisProcess
A process to be executed over a sample of data being parsed. When
AbstractCharInputReader.reloadBuffer()
loads a batch of characters from the input,
the InputAnalysisProcess
will be executed and then discarded.
Parsers can implement their custom analysis processes to identify patterns and attempt to automatically derive configuration options to process the input
by calling AbstractCharInputReader.addInputAnalysisProcess(InputAnalysisProcess)
at any time.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(char[] characters, int length) A sequence of characters of the input buffer to be analyzed.
-
Method Details
-
execute
void execute(char[] characters, int length) A sequence of characters of the input buffer to be analyzed.- Parameters:
characters
- the input bufferlength
- the last character position loaded into the buffer.
-