BratAnnotationStream (Apache OpenNLP :: Core :: Formats 3.0.0-M4 API)
Description: declaration: package: opennlp.tools.formats.brat, class: BratAnnotationStream

Package opennlp.tools.formats.brat

# Class BratAnnotationStream

java.lang.Object
opennlp.tools.formats.brat.BratAnnotationStream

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

public class BratAnnotationStream extends Object implements opennlp.tools.util.ObjectStream<BratAnnotation>
Reads the annotations from the brat `.ann` annotation file.

- ## Method Summary

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

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

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

- ## Method Details

  - ### read

    public BratAnnotation read() throws IOException
    Specified by:
      `read` in interface `opennlp.tools.util.ObjectStream<BratAnnotation>`
    Throws:
      `IOException`

  - ### reset

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

  - ### close

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