stream Documents
fun streamDocuments(startingFrom: Instant? = null, loader: CsafLoader = lazyLoader, channelCapacity: Int = DEFAULT_CHANNEL_CAPACITY): Stream<ResultCompat<RetrievedDocument>>
This method provides the Results of fetchDocuments as a Java Stream for usage in non-Kotlin environments.
Return
The fetched Results, representing RetrievedDocuments or fetch/validation errors, wrapped into ResultCompat for Java compatibility.
Parameters
loader
The instance of CsafLoader used for fetching of online resources.
channel Capacity
The capacity of the channels used to buffer parallel fetches. Defaults to DEFAULT_CHANNEL_CAPACITY.