Package opennlp.tools.util

# Class FilterObjectStream<S,T>

java.lang.Object
opennlp.tools.util.FilterObjectStream<S,T>

Type Parameters:
  `S` - The sample type of the source or input stream.
  `T` - The sample type of this stream

All Implemented Interfaces:
  `AutoCloseable`, `opennlp.tools.util.ObjectStream<T>`

Direct Known Subclasses:
  `ChunkSampleStream`, `ChunkSampleStream`, `DocumentSampleStream`, `EmptyLinePreprocessorStream`, `EventTraceStream`, `LanguageDetectorSampleStream`, `LemmaSampleStream`, `NameSampleDataStream`, `NameSampleTypeFilter`, `ParseSampleStream`, `PosSampleStream`, `SentenceSampleStream`, `SentimentSampleStream`, `SentimentSampleTypeFilter`, `StopwordFilterStream`, `TokenSampleStream`, `WhitespaceTokenStream`, `WordTagSampleStream`

public abstract class FilterObjectStream<S,T> extends Object implements opennlp.tools.util.ObjectStream<T>
Abstract base class for filtering `streams`.

Filtering streams take an existing stream and convert its output to something else.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `void`
  `reset()`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface opennlp.tools.util.ObjectStream

  `read`

- ## Method Details

  - ### reset

    public void reset() throws IOException, UnsupportedOperationException
    Specified by:
      `reset` in interface `opennlp.tools.util.ObjectStream<S>`
    Throws:
      `IOException`
      `UnsupportedOperationException`

  - ### close

    public void close() throws IOException
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `opennlp.tools.util.ObjectStream<S>`
    Throws:
      `IOException`