This section describes the basic structure of a stand-alone application using the API. See the source referenced in Java API Example. Typically, your application takes the following actions:
Instantiate an EDKEngine
object.
Micro Focus recommends that you program against the TextExtractionEngine
interface to instantiate EDKEngine
.
You can create the engine without a configuration, or you can create an engine from an appropriate configuration file. If you use a configuration file, you can skip steps 2 and 3.
Instantiate an EDKSession
object and associate it with the engine.
Micro Focus recommends that you program against the TextExtractionSession
interface to instantiate EDKSession
.
Execute a for each
loop to obtain an EDKMatch
object for each match in a session.
If you create your EDKEngine
from a configuration file that includes post-processing tasks, the post-processing tasks automatically run as part of EDKMatch
and you do not need to run them separately.
|