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 ofInDoipSegment
s. Users must callclose()
when processing is complete. See alsoInDoipMessageUtil
.
-
-
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 typeInDoipSegment
.
-
-
-
Method Detail
-
stream
java.util.stream.Stream<InDoipSegment> stream()
Returns an stream over elements of typeInDoipSegment
.- Returns:
- a Stream.
-
close
void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-