File Content Extraction 26.1
Filter SDK Java Programming Guide

# FilterStreamToStream

The FilterStreamToStream program filters an input stream to an output stream using Java API methods in Filter. It demonstrates the following functions:

- creates an input and an output stream. Filters the input stream to the output stream.
- extracts file format information (document type, format, version, and so on) if available in the source document.
- extracts metadata if available in the source document. This program extracts all the metadata from the document, but only displays the first element of metadata.

NOTE: In KeyView version 12.9 and later, OpenText recommends that you implement a `com.verity.api.SeekableInputStream`. See Input/Output Operations.

## Run FilterStreamToStream on Windows

To run `FilterStreamToStream` on Windows

1. In the `FilterStreamToStream.bat` file, set the following variables.

   `INSTALL_DIR` | The absolute path of the File Content Extraction Filter SDK installation directory.
   `PLATFORM` | The platform name.

2. Run the batch file in the directory `install\javaapi\sample`, where `install` is the path name of the Filter installation directory. Type the following:

       filterstreamtostream inputfile

   where,

   - `inputfile` is the path and file name of the source file.
   - The generated text is output to the current DOS prompt.

## Run FilterStreamToStream on UNIX

To run `FilterStreamToStream` on UNIX

1. In the `FilterStreamToStream.csh` file, set the following variables.

   `INSTALL_DIR` | The absolute path of the File Content Extraction Filter SDK installation directory.
   `PLATFORM` | The platform name.

2. Run the C shell file in the directory `install/javaapi/sample`, where `install` is the path name of the Filter installation directory. Type the following:

       ./FilterStreamToStream.csh inputfile

   where,

   - `inputfile` is the path and file name of the source file.
   - The generated text is output to the current console (standard out).

Copyright 1997-2025 Open Text
Version 26.1 | Last updated January 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.1

Topic Title: FilterStreamToStream