Class URIResolvers
java.lang.Object
io.nosqlbench.nb.api.nbio.URIResolvers
This is a URI-centric content locator for URLs and Paths. This central
API is meant to make dealing with content bundling and loading easy,
given how convoluted using the standard APIs can be.
Selecting Content Source
You can load content from all sources, or any individual source, from
URLs, the (default) filesystem, and the classpath. If you use the lookEverywhere()
method go get your instance, then they are all included, in the order mentioned above.
However, it is possible to search within only one, or in a specific order by calling
the inURLs(), the inFS(), or the inClasspath(), methods respectively.
For example, to search only in the local filesystem use inFS() only.
Reading Content
All of the
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic URIResolverstatic URIResolverinFS()static URIResolverstatic URIResolverinURLs()static URIResolver
-
Constructor Details
-
URIResolvers
public URIResolvers()
-
-
Method Details
-
lookEverywhere
-
inFS
-
inURLs
-
inClasspath
-
inNBIOCache
-