org.apache.any23.extractor.html
Class HTMLMetaExtractor

java.lang.Object
  extended by org.apache.any23.extractor.html.HTMLMetaExtractor
All Implemented Interfaces:
Extractor<Document>, Extractor.TagSoupDOMExtractor

public class HTMLMetaExtractor
extends Object
implements Extractor.TagSoupDOMExtractor

This extractor represents the HTML META tag values according the HTML4 specification.

Author:
Davide Palmisano ( dpalmisano@gmail.com )

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.any23.extractor.Extractor
Extractor.BlindExtractor, Extractor.ContentExtractor, Extractor.TagSoupDOMExtractor
 
Field Summary
static ExtractorFactory<HTMLMetaExtractor> factory
          
static String NAME
           
 
Constructor Summary
HTMLMetaExtractor()
           
 
Method Summary
 ExtractorDescription getDescription()
          Returns a ExtractorDescription of this extractor.
 void run(ExtractionParameters extractionParameters, ExtractionContext extractionContext, Document in, ExtractionResult out)
          Executes the extractor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

factory

public static final ExtractorFactory<HTMLMetaExtractor> factory

Constructor Detail

HTMLMetaExtractor

public HTMLMetaExtractor()
Method Detail

run

public void run(ExtractionParameters extractionParameters,
                ExtractionContext extractionContext,
                Document in,
                ExtractionResult out)
         throws IOException,
                ExtractionException
Executes the extractor. Will be invoked only once, extractors are not reusable.

Specified by:
run in interface Extractor<Document>
Parameters:
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.
Throws:
IOException - On error while reading from the input stream.
ExtractionException - On other error, such as parse errors.

getDescription

public ExtractorDescription getDescription()
Description copied from interface: Extractor
Returns a ExtractorDescription of this extractor.

Specified by:
getDescription in interface Extractor<Document>
Returns:
the object representing the extractor description.


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.