public class MOTPipe extends MOTPipeInterface
Modifier and Type | Field and Description |
---|---|
Converter |
Converter
The converter
|
boolean |
enableReference
If true, some processors add the annotation sources
|
java.util.List<Processor> |
Processor
The list of processors
|
java.util.List<Resource> |
Resource
The list of resources
|
InvalidTID
Constructor and Description |
---|
MOTPipe(Converter converter,
Resource[] resources,
Processor[] processors)
Build a MOTPipe.
|
MOTPipe(Converter converter,
Resource[] resources,
Processor[] processors,
boolean enableReference)
Build a MOTPipe.
|
Modifier and Type | Method and Description |
---|---|
static void |
checkLicense(Converter converter,
java.util.List<Processor> processors) |
static void |
destroyProcessorHelper(Processor p) |
protected void |
finalize() |
Processor |
getProcessor(java.lang.String name)
Get a processor according to its name.
|
boolean |
hasResourceGroupDependancy(java.lang.String groupName) |
void |
init()
Initialize a MOTPipe.
|
void |
init(Referential referential)
Initialize a MOTPipe with a non-empty referential (JavaCustomTokenizer/SemanticProcessor)
This gets the pipe ready for receiving binary tokens as input.
|
void |
init(TokenFactory factory)
Initialize a MOTPipe using an allocated TokenFactory.
|
void |
init(TokenFactory factory,
Referential referential)
Initialize a MOTPipe using an allocated TokenFactory and Referential (JavaCustomTokenizer/SemanticProcessor)
|
void |
release(boolean finalizeElements)
Release the resources referenced by the pipe.
|
disableAllProcessors, disableProcessor, displayProfilingStats, displayProfilingStats, displayXML, enableProcessor, enableProfiling, endDocument, feed, getDocumentAnnotations, getNextAnnotation, getNextTokens, getReferential, getTag, getTID, getTIDs, newDocument, newDocument, newDocument, newField, process, process, process, processAllTokens, processBytes, processBytes, processBytes, processFeed, processFeed, processFeed, release, setTimeout
public Converter Converter
public java.util.List<Resource> Resource
public java.util.List<Processor> Processor
public boolean enableReference
public MOTPipe(Converter converter, Resource[] resources, Processor[] processors)
converter
- The tokenizer.resources
- The list of resources.processors
- The list of processors.public MOTPipe(Converter converter, Resource[] resources, Processor[] processors, boolean enableReference)
converter
- The tokenizer.resources
- The list of resources.processors
- The list of processors.enableReference
- If true, some processors will add references to their annotations.public void init() throws ResourceNotFoundException, ResourceAllocationFailedException
public void init(Referential referential) throws java.lang.Exception
java.lang.Exception
public void init(TokenFactory factory) throws ResourceNotFoundException, ResourceAllocationFailedException
factory
- The pre-allocated TokenFactory.ResourceAllocationFailedException
ResourceNotFoundException
public void init(TokenFactory factory, Referential referential) throws ResourceNotFoundException, ResourceAllocationFailedException
factory
- The pre-allocated TokenFactory.referential
- A non-empty referential making the pipe ready for receiving binary tokens as input (may be null)ResourceAllocationFailedException
ResourceNotFoundException
public static final void checkLicense(Converter converter, java.util.List<Processor> processors)
public void release(boolean finalizeElements)
MOTPipeInterface
release
in class MOTPipeInterface
finalizeElements
- If true, the processors, converters, and the
pipe itself are finalized.public Processor getProcessor(java.lang.String name)
name
- The name of the processor to retrieve.protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public boolean hasResourceGroupDependancy(java.lang.String groupName)
hasResourceGroupDependancy
in class MOTPipeInterface
public static void destroyProcessorHelper(Processor p)
Copyright © 2013 Dassault Systèmes, All Rights Reserved.