DocumentSampleStreamFactory (Apache OpenNLP Tools 2.5.9 API)
Description: declaration: package: opennlp.tools.formats, class: DocumentSampleStreamFactory

# Class DocumentSampleStreamFactory

java.lang.Object
opennlp.tools.formats.AbstractSampleStreamFactory<DocumentSample, DocumentSampleStreamFactory.Parameters>
opennlp.tools.formats.DocumentSampleStreamFactory

All Implemented Interfaces:
  `opennlp.tools.cmdline.ObjectStreamFactory<DocumentSample, DocumentSampleStreamFactory.Parameters>`

public class DocumentSampleStreamFactory extends AbstractSampleStreamFactory<DocumentSample, DocumentSampleStreamFactory.Parameters>
Factory producing OpenNLP `DocumentSampleStream`s.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static interface`
  `DocumentSampleStreamFactory.Parameters`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ObjectStream<DocumentSample>`
  `create(String[] args)`
  Creates an `ObjectStream` of the template type `T`.
  `static void`
  `registerFactory()`

  ### Methods inherited from class AbstractSampleStreamFactory

  `getLang, getParameters`

  ### Methods inherited from class Object

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

- ## Method Details

  - ### registerFactory

    public static void registerFactory()

  - ### create

    public ObjectStream<DocumentSample> create(String[] args)
    Description copied from interface: `opennlp.tools.cmdline.ObjectStreamFactory`
    Creates an `ObjectStream` of the template type `T`.
    Parameters:
      `args` - arguments
    Returns:
      The created `ObjectStream` instance.