public class CSVExtractor extends Object implements Extractor.ContentExtractor
CSVReaderBuilderExtractor.BlindExtractor, Extractor.ContentExtractor, Extractor.TagSoupDOMExtractor| Modifier and Type | Field and Description |
|---|---|
static ExtractorFactory<CSVExtractor> |
factory |
| Constructor and Description |
|---|
CSVExtractor() |
| Modifier and Type | Method and Description |
|---|---|
ExtractorDescription |
getDescription()
Returns a
ExtractorDescription of this extractor. |
void |
run(ExtractionParameters extractionParameters,
ExtractionContext extractionContext,
InputStream in,
ExtractionResult out)
Executes the extractor.
|
void |
setStopAtFirstError(boolean f)
If
true, the extractor will stop at first parsing error,
iffalse the extractor will attempt to ignore all parsing errors. |
public static final ExtractorFactory<CSVExtractor> factory
public void setStopAtFirstError(boolean f)
true, the extractor will stop at first parsing error,
iffalse the extractor will attempt to ignore all parsing errors.setStopAtFirstError in interface Extractor.ContentExtractorf - tolerance flag.public void run(ExtractionParameters extractionParameters, ExtractionContext extractionContext, InputStream in, ExtractionResult out) throws IOException, ExtractionException
run in interface Extractor<InputStream>extractionParameters - the parameters to be applied during the extraction.extractionContext - The document context.in - The extractor input data.out - the collector for the extracted data.IOException - On error while reading from the input stream.ExtractionException - On other error, such as parse errors.public ExtractorDescription getDescription()
ExtractorDescription of this extractor.getDescription in interface Extractor<InputStream>Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.