Class ICalExtractor
- java.lang.Object
-
- org.apache.any23.extractor.calendar.ICalExtractor
-
- All Implemented Interfaces:
Extractor<InputStream>
,Extractor.ContentExtractor
public class ICalExtractor extends Object
- Author:
- Hans Brende (hansbrende@apache.org)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.any23.extractor.Extractor
Extractor.BlindExtractor, Extractor.ContentExtractor, Extractor.TagSoupDOMExtractor
-
-
Constructor Summary
Constructors Constructor Description ICalExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtractorDescription
getDescription()
Returns aExtractorDescription
of this extractor.void
run(ExtractionParameters extractionParameters, ExtractionContext extractionContext, InputStream inputStream, ExtractionResult result)
Executes the extractor.void
setStopAtFirstError(boolean b)
Iftrue
, the extractor will stop at first parsing error, iffalse
the extractor will attempt to ignore all parsing errors.
-
-
-
Method Detail
-
getDescription
public ExtractorDescription getDescription()
Description copied from interface:Extractor
Returns aExtractorDescription
of this extractor.- Returns:
- the object representing the extractor description.
-
setStopAtFirstError
public void setStopAtFirstError(boolean b)
Description copied from interface:Extractor.ContentExtractor
Iftrue
, the extractor will stop at first parsing error, iffalse
the extractor will attempt to ignore all parsing errors.- Specified by:
setStopAtFirstError
in interfaceExtractor.ContentExtractor
- Parameters:
b
- tolerance flag.
-
run
public final void run(ExtractionParameters extractionParameters, ExtractionContext extractionContext, InputStream inputStream, ExtractionResult result) throws IOException, ExtractionException
Description copied from interface:Extractor
Executes the extractor. Will be invoked only once, extractors are not reusable.- Specified by:
run
in interfaceExtractor<InputStream>
- Parameters:
extractionParameters
- the parameters to be applied during the extraction.extractionContext
- The document context.inputStream
- The extractor input data.result
- the collector for the extracted data.- Throws:
IOException
- On error while reading from the input stream.ExtractionException
- On other error, such as parse errors.
-
-