public final class GltfModelWriterV2
extends java.lang.Object
GltfModelV2. This class contains
implementations for the methods of the GltfModelWriter,
for glTF 2.0 assets. Clients should not use this class directly,
but only the GltfModelWriter.| Constructor and Description |
|---|
GltfModelWriterV2()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(GltfModelV2 gltfModel,
java.io.File file)
Write the given
GltfModelV2 to the given file. |
void |
writeBinary(GltfModelV2 gltfModel,
java.io.OutputStream outputStream)
Write the given
GltfModelV2 as a binary glTF asset to the
given output stream. |
void |
writeEmbedded(GltfModelV2 gltfModel,
java.io.OutputStream outputStream)
Write the given
GltfModelV2 as an embedded glTF asset to the
given output stream. |
public void write(GltfModelV2 gltfModel, java.io.File file) throws java.io.IOException
GltfModelV2 to the given file. External
references of buffers and images that are given via the respective
URI string will be resolved against the parent directory of the
given file, and the corresponding data will be written into
the corresponding files.gltfModel - The GltfModelV2file - The filejava.io.IOException - If an IO error occurspublic void writeBinary(GltfModelV2 gltfModel, java.io.OutputStream outputStream) throws java.io.IOException
GltfModelV2 as a binary glTF asset to the
given output stream. The caller is responsible for closing the
given stream.gltfModel - The GltfModelV2outputStream - The output streamjava.io.IOException - If an IO error occurspublic void writeEmbedded(GltfModelV2 gltfModel, java.io.OutputStream outputStream) throws java.io.IOException
GltfModelV2 as an embedded glTF asset to the
given output stream. The caller is responsible for closing the
given stream.gltfModel - The GltfModelV2outputStream - The output streamjava.io.IOException - If an IO error occursCopyright © 2022. All Rights Reserved.