public class UriResolvers
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.function.Function<java.lang.String,java.nio.ByteBuffer> |
createBasePathResolver(java.nio.file.Path basePath)
Creates a function that resolves path strings against the given
base path, and returns a byte buffer containing the data from
the resulting path.
|
static java.util.function.Function<java.lang.String,java.nio.ByteBuffer> |
createBaseUriResolver(java.net.URI baseUri)
Creates a function that resolves URI strings against the given
base URI, and returns a byte buffer containing the data from
the resulting URI.
|
static java.util.function.Function<java.lang.String,java.nio.ByteBuffer> |
createResourceUriResolver(java.lang.Class<?> c)
Create a function that maps a string to the input stream of a resource
of the given class.
|
public static java.util.function.Function<java.lang.String,java.nio.ByteBuffer> createBaseUriResolver(java.net.URI baseUri)
null.baseUri - The base URI to resolve againstpublic static java.util.function.Function<java.lang.String,java.nio.ByteBuffer> createBasePathResolver(java.nio.file.Path basePath)
null.basePath - The base Path to resolve againstpublic static java.util.function.Function<java.lang.String,java.nio.ByteBuffer> createResourceUriResolver(java.lang.Class<?> c)
c - The classCopyright © 2022. All Rights Reserved.