Package net.dona.doip

# Interface InDoipMessage

All Superinterfaces:
  `AutoCloseable`, `Iterable<InDoipSegment>`

All Known Implementing Classes:
  `InDoipMessageFromCollection`, `InDoipMessageFromJson`, `InDoipMessageImpl`

public interface InDoipMessage extends Iterable<InDoipSegment>, AutoCloseable
A DOIP message to be read as input (for example, a response for the client, or a request for the server). It is a stream or iterable of `InDoipSegment`s. Users must call `close()` when processing is complete. See also `InDoipMessageUtil`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `Stream<InDoipSegment>`
  `stream()`
  Returns an stream over elements of type `InDoipSegment`.

  ### Methods inherited from interface java.lang.Iterable

  `forEach, iterator, spliterator`

- ## Method Details

  - ### stream

    Stream<InDoipSegment> stream()
    Returns an stream over elements of type `InDoipSegment`.
    Returns:
      a Stream.

  - ### close

    void close()
    Specified by:
      `close` in interface `AutoCloseable`