public class GltfAssetWriter
extends java.lang.Object
GltfAsset| Constructor and Description |
|---|
GltfAssetWriter()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(GltfAsset gltfAsset,
java.io.File file)
Write the the given
GltfAsset to the given file. |
void |
write(GltfAsset gltfAsset,
java.lang.String fileName)
Write the the given
GltfAsset to a file with the given name. |
void |
writeBinary(GltfAsset gltfAsset,
java.io.File file)
Write the given
GltfAsset as a binary glTF asset to the given
file |
void |
writeBinary(GltfAsset gltfAsset,
java.io.OutputStream outputStream)
Write the given
GltfAsset as a binary glTF asset to the
given output stream. |
void |
writeBinary(GltfAsset gltfAsset,
java.lang.String fileName)
Write the given
GltfAsset as a binary glTF asset to file with
the given name. |
void |
writeJson(GltfAsset gltfAsset,
java.io.File file)
Write the JSON part of the given
GltfAsset to a file with
the given name. |
void |
writeJson(GltfAsset gltfAsset,
java.io.OutputStream outputStream)
Write the JSON part of the given
GltfAsset to the given
output stream. |
void |
writeJson(GltfAsset gltfAsset,
java.lang.String fileName)
Write the JSON part of the given
GltfAsset to a file with
the given name. |
public void write(GltfAsset gltfAsset, java.lang.String fileName) throws java.io.IOException
GltfAsset to a file with the given name.
The binary data will be ignored.
The reference data elements
will be written to files that are determined by resolving the
(relative) URLs of the references against the parent of the specified
file.gltfAsset - The GltfAssetfileName - The file name for the JSON filejava.io.IOException - If an IO error occurredpublic void write(GltfAsset gltfAsset, java.io.File file) throws java.io.IOException
GltfAsset to the given file.
The binary data will be ignored.
The reference data elements
will be written to files that are determined by resolving the
(relative) URLs of the references against the parent of the specified
file.gltfAsset - The GltfAssetfile - The file for the JSON partjava.io.IOException - If an IO error occurredpublic void writeJson(GltfAsset gltfAsset, java.lang.String fileName) throws java.io.IOException
GltfAsset to a file with
the given name. The binary data
and reference data elements
will be ignored.gltfAsset - The GltfAssetfileName - The file name for the JSON filejava.io.IOException - If an IO error occurredpublic void writeJson(GltfAsset gltfAsset, java.io.File file) throws java.io.IOException
GltfAsset to a file with
the given name. The binary data
and reference data elements
will be ignored.gltfAsset - The GltfAssetfile - The file for the JSON partjava.io.IOException - If an IO error occurredpublic void writeJson(GltfAsset gltfAsset, java.io.OutputStream outputStream) throws java.io.IOException
GltfAsset to the given
output stream. The binary data
and reference data elements
will be ignored. The caller is responsible for closing the given
stream.gltfAsset - The GltfAssetoutputStream - The output streamjava.io.IOException - If an IO error occurredpublic void writeBinary(GltfAsset gltfAsset, java.lang.String fileName) throws java.io.IOException
GltfAsset as a binary glTF asset to file with
the given name.gltfAsset - The GltfAssetfileName - The file name for the JSON filejava.io.IOException - If an IO error occurredpublic void writeBinary(GltfAsset gltfAsset, java.io.File file) throws java.io.IOException
GltfAsset as a binary glTF asset to the given
filegltfAsset - The GltfAssetfile - The filejava.io.IOException - If an IO error occurredpublic void writeBinary(GltfAsset gltfAsset, java.io.OutputStream outputStream) throws java.io.IOException
GltfAsset as a binary glTF asset to the
given output stream. The caller is responsible for closing the
given stream.gltfAsset - The GltfAssetoutputStream - The output streamjava.io.IOException - If an IO error occurredCopyright © 2022. All Rights Reserved.