Package net.dona.doip

## Interface InDoipMessage

- All Superinterfaces:
    `java.lang.AutoCloseable`, `java.lang.Iterable<InDoipSegment>`
  All Known Implementing Classes:
    `InDoipMessageFromCollection`, `InDoipMessageFromJson`, `InDoipMessageImpl`

      public interface InDoipMessage
      extends java.lang.Iterable<InDoipSegment>, java.lang.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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `close()` |
    `java.util.stream.Stream<InDoipSegment>` | `stream()` | Returns an stream over elements of type `InDoipSegment`.

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

      `forEach, iterator, spliterator`

- - ### Method Detail

    - #### stream

          java.util.stream.Stream<InDoipSegment> stream()

      Returns an stream over elements of type `InDoipSegment`.
      Returns:
        a Stream.

    - #### close

          void close()

      Specified by:
        `close` in interface `java.lang.AutoCloseable`