@ProviderType
public class ResourceStream
extends java.lang.Object
Constructor and Description |
---|
ResourceStream(Resource resource) |
Modifier and Type | Method and Description |
---|---|
java.util.stream.Stream<Resource> |
listChildren(java.util.function.Predicate<Resource> childSelector)
Provides a stream of the child resources of the base resource.
|
java.util.stream.Stream<Resource> |
stream(java.util.function.Predicate<Resource> branchSelector)
Provides a depth first
Stream<Resource> traversal of the resource
tree starting with the current resource. |
protected Resource resource
public ResourceStream(Resource resource)
public java.util.stream.Stream<Resource> stream(java.util.function.Predicate<Resource> branchSelector)
Stream<Resource>
traversal of the resource
tree starting with the current resource. The traversal is controlled by the
provided predicate which determines if a given child is traversed. If no
children matches the predicate, the traversal for that branch endsbranchSelector
- used to determine whether a given child resource is traversedStream<Resource>
of unknown size.Copyright © 2022 The Apache Software Foundation. All rights reserved.