public class GltfReferenceResolver
extends java.lang.Object
GltfReference objects
that are obtained from a GltfAsset| Modifier and Type | Method and Description |
|---|---|
static void |
resolve(GltfReference reference,
java.util.function.Function<? super java.lang.String,? extends java.nio.ByteBuffer> uriResolver)
Pass the
URI of the given
GltfReference to the given resolver function,
and and pass the resulting byte buffer to the
target of the reference. |
static void |
resolveAll(java.lang.Iterable<? extends GltfReference> references,
java.util.function.Function<? super java.lang.String,? extends java.nio.ByteBuffer> uriResolver)
Calls
resolve(GltfReference, Function) with each
GltfReference of the given list |
static void |
resolveAll(java.lang.Iterable<? extends GltfReference> references,
java.nio.file.Path basePath)
Calls
resolve(GltfReference, Function) with each
GltfReference of the given list, resolving the
Paths of the references against the given base Path |
static void |
resolveAll(java.lang.Iterable<? extends GltfReference> references,
java.net.URI baseUri)
Calls
resolve(GltfReference, Function) with each
GltfReference of the given list, resolving the
URIs of the references against the given base URI |
public static void resolveAll(java.lang.Iterable<? extends GltfReference> references, java.net.URI baseUri)
resolve(GltfReference, Function) with each
GltfReference of the given list, resolving the
URIs of the references against the given base URIreferences - The GltfReference objectsbaseUri - The base URI that references will be resolved againstpublic static void resolveAll(java.lang.Iterable<? extends GltfReference> references, java.nio.file.Path basePath)
resolve(GltfReference, Function) with each
GltfReference of the given list, resolving the
Paths of the references against the given base Pathreferences - The GltfReference objectsbasePath - The base Path that references will be resolved againstpublic static void resolveAll(java.lang.Iterable<? extends GltfReference> references, java.util.function.Function<? super java.lang.String,? extends java.nio.ByteBuffer> uriResolver)
resolve(GltfReference, Function) with each
GltfReference of the given listreferences - The GltfReference objectsuriResolver - The function for resolving a URI string
into a byte bufferpublic static void resolve(GltfReference reference, java.util.function.Function<? super java.lang.String,? extends java.nio.ByteBuffer> uriResolver)
URI of the given
GltfReference to the given resolver function,
and and pass the resulting byte buffer to the
target of the reference. If
a URI cannot be resolved, a warning will be printed.reference - The GltfReferenceuriResolver - The function for resolving a URI string
into an byte bufferCopyright © 2022. All Rights Reserved.