File Content Extraction 26.3
Filter SDK Java Programming Guide

# Introduction

The following Java sample programs are provided:

- ExtractFilter
- FilterFileByChunk
- FilterFileToFile
- FilterFileToStream
- FilterStreamByChunk
- FilterStreamToFile
- FilterStreamToStream
- FilterTest

The source code for the programs is in the directory `javaapi/sample`. Included alongside the source code are compiled `.class` files, and the following Batch (`.bat`) and C Shell (`.csh`) files that help run the corresponding program:

    FilterFileToFile.bat (.csh)

    FilterStreamToStream.bat (.csh)

    FilterFileToStream.bat (.csh)

    FilterStreamToFile.bat (.csh)

    FilterFileByChunk.bat (.csh)

    FilterStreamByChunk.bat (.csh)

Before the sample code can be compiled, you must replace the placeholder `YOUR_KEYVIEW_LICENSE` in the `Filter` constructor with your license information.

The compiled `.class` files that are supplied in the SDK have an embedded trial license, which expires approximately five months after release. If you set the environment variable `KV_SAMPLE_PROGRAM_LICENSE_FROM_FILEPATH` to a file path, the sample programs read your license from the specified file. This allows you to use the programs after the embedded trial license has expired, and to test or troubleshoot with your own license.

NOTE: The sample programs that demonstrate the use of an input stream show filtering from a `java.io.InputStream` object. In KeyView version 12.9 and later, the stream methods are overloaded to allow you to pass in a `com.verity.api.SeekableInputStream` implementation. OpenText recommends this option, as it allows File Content Extraction to seek about in the file, only reading the parts it needs to read.

If you do need to use a Java InputStream, and you know the stream length, using the method overload that passes in the size might allow File Content Extraction to avoid caching the whole file.

Copyright 1997-2026 Open Text
Version 26.3 | Last updated July 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction 26.3

Topic Title: Introduction