# Standalone API Usage

This section describes the basic structure of a standalone application using the API. See the source referenced in Java API Examples. Typically, your application takes the following actions:

1. Instantiate an `EDKEngine` object.

   TIP: Micro Focus recommends that you program against the `TextExtractionEngine` interface to instantiate `EDKEngine`.

   You can create an engine from an appropriate configuration file and go to step 2.

   Alternatively, you can create the engine without a configuration. In this case you must then also:

   1. Set the license key.

   2. Configure the engine, load the grammars, and select entities.

2. Instantiate an `EDKSession` object and associate it with the engine.

   TIP: Micro Focus recommends that you program against the `TextExtractionSession` interface to instantiate `EDKSession`.

3. Send UTF-8 encoded text to the session or pass the session a stream it can read.

4. Execute a `for each` loop to obtain an `EDKMatch` object for each match in a session.

   NOTE: 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.

5. Get the properties of the match.
6. Release resources when done.

© Copyright 2013-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm