# Uses of Interface
opennlp.tools.util.ObjectStream

Packages that use ObjectStream
Package
Description
opennlp.tools.cmdline
opennlp.tools.ml
opennlp.tools.ml.model
opennlp.tools.util

- ## Uses of ObjectStream in opennlp.tools.cmdline

  Methods in opennlp.tools.cmdline that return ObjectStream
  Modifier and Type
  Method
  Description
  `ObjectStream<T>`
  ObjectStreamFactory.`create(String[] args)`
  Creates an `ObjectStream` of the template type `T`.

- ## Uses of ObjectStream in opennlp.tools.ml

  Methods in opennlp.tools.ml with parameters of type ObjectStream
  Modifier and Type
  Method
  Description
  `MaxentModel`
  EventTrainer.`train(ObjectStream<Event> events)`
  Trains a `MaxentModel` for given `events`.

- ## Uses of ObjectStream in opennlp.tools.ml.model

  Subinterfaces of ObjectStream in opennlp.tools.ml.model
  Modifier and Type
  Interface
  Description
  `interface`
  `SequenceStream<S>`
  Interface for streams of `sequences` used to train sequence models.
  Methods in opennlp.tools.ml.model with parameters of type ObjectStream
  Modifier and Type
  Method
  Description
  `void`
  DataIndexer.`index(ObjectStream<Event> eventStream)`
  Performs the data indexing.

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

  Classes in opennlp.tools.util that implement ObjectStream
  Modifier and Type
  Class
  Description
  `class`
  `AbstractObjectStream<T>`
  A base `ObjectStream` implementation.
  `class`
  `PlainTextByLineStream`
  Reads a plain text file and returns each line as a `String` object.
  Methods in opennlp.tools.util that return ObjectStream
  Modifier and Type
  Method
  Description
  `static <T> ObjectStream<T>`
  ObjectStreamUtils.`concatenateObjectStream(Collection<ObjectStream<T>> streams)`
  Creates a single concatenated `ObjectStream` from multiple individual `streams` with the same type `ObjectStreamUtils`.
  `static <T> ObjectStream<T>`
  ObjectStreamUtils.`concatenateObjectStream(ObjectStream<T>... streams)`
  Creates a single concatenated `ObjectStream` from multiple individual `streams` with the same type.
  `static <T> ObjectStream<T>`
  ObjectStreamUtils.`createObjectStream(Collection<T> collection)`
  Creates an `ObjectStream` form a `Collection<T>`.
  `static <T> ObjectStream<T>`
  ObjectStreamUtils.`createObjectStream(T... array)`
  Creates an `ObjectStream` form an array of `ObjectStreamUtils`.
  Methods in opennlp.tools.util with parameters of type ObjectStream
  Modifier and Type
  Method
  Description
  `static <T> ObjectStream<T>`
  ObjectStreamUtils.`concatenateObjectStream(ObjectStream<T>... streams)`
  Creates a single concatenated `ObjectStream` from multiple individual `streams` with the same type.
  Method parameters in opennlp.tools.util with type arguments of type ObjectStream
  Modifier and Type
  Method
  Description
  `static <T> ObjectStream<T>`
  ObjectStreamUtils.`concatenateObjectStream(Collection<ObjectStream<T>> streams)`
  Creates a single concatenated `ObjectStream` from multiple individual `streams` with the same type `ObjectStreamUtils`.
  Constructors in opennlp.tools.util with parameters of type ObjectStream
  Modifier
  Constructor
  Description
  `protected`
  `AbstractObjectStream(ObjectStream<T> stream)`
  Initializes an `AbstractObjectStream`.