org.modeshape.extractor.teiid
Class TeiidVdbTextExtractor

java.lang.Object
  extended by org.modeshape.extractor.teiid.TeiidVdbTextExtractor
All Implemented Interfaces:
TextExtractor

public class TeiidVdbTextExtractor
extends Object
implements TextExtractor


Constructor Summary
TeiidVdbTextExtractor()
           
 
Method Summary
 void extractFrom(InputStream stream, TextExtractorOutput output, TextExtractorContext context)
          Sequence the data found in the supplied stream, placing the output information into the supplied map.
 boolean supportsMimeType(String mimeType)
          Determine if this extractor is capable of processing content with the supplied MIME type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeiidVdbTextExtractor

public TeiidVdbTextExtractor()
Method Detail

supportsMimeType

public boolean supportsMimeType(String mimeType)
Determine if this extractor is capable of processing content with the supplied MIME type.

Specified by:
supportsMimeType in interface TextExtractor
Parameters:
mimeType - the MIME type; never null
Returns:
true if this extractor can process content with the supplied MIME type, or false otherwise.
See Also:
TextExtractor.supportsMimeType(java.lang.String)

extractFrom

public void extractFrom(InputStream stream,
                        TextExtractorOutput output,
                        TextExtractorContext context)
Sequence the data found in the supplied stream, placing the output information into the supplied map.

ModeShape's SequencingService determines the sequencers that should be executed by monitoring the changes to one or more workspaces that it is monitoring. Changes in those workspaces are aggregated and used to determine which sequencers should be called. If the sequencer implements this interface, then this method is called with the property that is to be sequenced along with the interface used to register the output. The framework takes care of all the rest.

Specified by:
extractFrom in interface TextExtractor
Parameters:
stream - the stream with the data to be sequenced; never null
output - the output from the sequencing operation; never null
context - the context for the sequencing operation; never null
See Also:
TextExtractor.extractFrom(java.io.InputStream, org.modeshape.graph.text.TextExtractorOutput, org.modeshape.graph.text.TextExtractorContext)


Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.