public final class GltfModelReader
extends java.lang.Object
GltfModel from a URI.| Constructor and Description |
|---|
GltfModelReader()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
GltfModel |
read(java.nio.file.Path path)
Read the
GltfModel from the given path |
GltfModel |
read(java.net.URI uri)
Read the
GltfModel from the given URI |
GltfModel |
readWithoutReferences(java.io.InputStream inputStream)
Read the
GltfModel from the given input stream. |
GltfModel |
readWithoutReferences(java.net.URI uri)
Read the
GltfModel from the given URI. |
void |
setJsonErrorConsumer(java.util.function.Consumer<? super JsonError> jsonErrorConsumer)
Set the given consumer to receive
JsonErrors that may
occur when a glTF is read |
public void setJsonErrorConsumer(java.util.function.Consumer<? super JsonError> jsonErrorConsumer)
JsonErrors that may
occur when a glTF is readjsonErrorConsumer - The JsonError consumerpublic GltfModel read(java.net.URI uri) throws java.io.IOException
GltfModel from the given URIuri - The URIGltfModeljava.io.IOException - If an IO error occurspublic GltfModel read(java.nio.file.Path path) throws java.io.IOException
GltfModel from the given pathpath - The pathGltfModeljava.io.IOException - If an IO error occurspublic GltfModel readWithoutReferences(java.net.URI uri) throws java.io.IOException
GltfModel from the given URI. In contrast to the
read(URI) method, this method will not resolve any
references that are contained in the GltfModel. uri - The URIGltfModeljava.io.IOException - If an IO error occurspublic GltfModel readWithoutReferences(java.io.InputStream inputStream) throws java.io.IOException
GltfModel from the given input stream. In contrast
to the read(URI) method, this method will not resolve any
references that are contained in the GltfAsset. inputStream - The input stream to read fromGltfModeljava.io.IOException - If an IO error occursCopyright © 2022. All Rights Reserved.