Package net.dona.doip
Interface InDoipMessage
- All Superinterfaces:
AutoCloseable,Iterable<InDoipSegment>
- All Known Implementing Classes:
InDoipMessageFromCollection,InDoipMessageFromJson,InDoipMessageImpl
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
InDoipSegments. Users must call close() when processing is complete.
See also InDoipMessageUtil.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()stream()Returns an stream over elements of typeInDoipSegment.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
stream
Stream<InDoipSegment> stream()Returns an stream over elements of typeInDoipSegment.- Returns:
- a Stream.
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-