Uses of Interface opennlp.tools.util.InputStreamFactory (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

## Uses of Interface
opennlp.tools.util.InputStreamFactory

- Packages that use InputStreamFactory
  Package | Description
  --- | ---
  opennlp.tools.formats | Experimental package related to converting various corpora to OpenNLP Format.
  opennlp.tools.formats.ad |
  opennlp.tools.formats.conllu |
  opennlp.tools.util | Package containing utility data structures and algorithms used by multiple other packages.

- - ### Uses of InputStreamFactory in opennlp.tools.formats

    Constructors in opennlp.tools.formats with parameters of type InputStreamFactory
    Constructor and Description
    `BioNLP2004NameSampleStream(InputStreamFactory in, int types)`
    `Conll02NameSampleStream(Conll02NameSampleStream.LANGUAGE lang, InputStreamFactory in, int types)`
    `Conll03NameSampleStream(Conll03NameSampleStream.LANGUAGE lang, InputStreamFactory in, int types)`
    `ConllXPOSSampleStream(InputStreamFactory in, Charset charset)`
    `EvalitaNameSampleStream(EvalitaNameSampleStream.LANGUAGE lang, InputStreamFactory in, int types)`
    `NameFinderCensus90NameStream(InputStreamFactory in, Charset encoding)` This constructor takes an `InputStream` and a `Charset` and opens an associated stream object with the specified encoding specified.

  - ### Uses of InputStreamFactory in opennlp.tools.formats.ad

    Constructors in opennlp.tools.formats.ad with parameters of type InputStreamFactory
    Constructor and Description
    `ADChunkSampleStream(InputStreamFactory in, String charsetName)`
    `ADNameSampleStream(InputStreamFactory in, String charsetName, boolean splitHyphenatedTokens)` Deprecated.
    `ADPOSSampleStream(InputStreamFactory in, String charsetName, boolean expandME, boolean includeFeatures)` Creates a new `POSSample` stream from a `InputStream`
    `ADSentenceSampleStream(InputStreamFactory in, String charsetName, boolean includeHeadlines)` Creates a new `SentenceSample` stream from a `FileInputStream`

  - ### Uses of InputStreamFactory in opennlp.tools.formats.conllu

    Constructors in opennlp.tools.formats.conllu with parameters of type InputStreamFactory
    Constructor and Description
    `ConlluStream(InputStreamFactory in)`

  - ### Uses of InputStreamFactory in opennlp.tools.util

    Classes in opennlp.tools.util that implement InputStreamFactory
    Modifier and Type | Class and Description
    --- | ---
    `class` | `MarkableFileInputStreamFactory` A factory that creates `MarkableFileInputStream` from a `File`

    Constructors in opennlp.tools.util with parameters of type InputStreamFactory
    Constructor and Description
    `PlainTextByLineStream(InputStreamFactory inputStreamFactory, Charset charset)`
    `PlainTextByLineStream(InputStreamFactory inputStreamFactory, String charsetName)`

Copyright © 2026 The Apache Software Foundation. All rights reserved.