Extract Metadata for Stream Filtering

To extract metadata for stream filtering

  1. Optionally, set the input source using one of the following methods of the Filter object: 

    • setInputSource(com.verity.api.SeekableInputStream input)

    • setInputSource(java.io.InputStream input, long size)

    • setInputSource(java.io.InputStream input)

  2. If you set the input source in step 1, call the getSummaryInfo() method of the Filter object to retrieve an object of the SummaryInfo class. Otherwise, call one of the following methods: 

    • getSummaryInfo(com.verity.api.SeekableInputStream input)

    • getSummaryInfo(java.io.InputStream input, long size)

    • getSummaryInfo(java.io.InputStream input)

  3. Use the methods of the SummaryInfo object to retrieve the metadata information.

TIP: Micro Focus recommends that you provide a SeekableInputStream. See Input/Output Operations.