public class GltfAssets
extends java.lang.Object
GltfAsset instances.GltfAsset. A default asset may contain references with
URIs that refer to a file. An embedded asset may contain
references with URIs that are data URIs. A binary asset may
contain a binary data blob. Mixed forms of assets are possible:
It is possible to create an asset where one URI refers to a file,
and another URI is a data URI. The methods in this class allow
checking whether an asset is "purely" of one specific type.
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isBinary(GltfAsset gltfAsset)
Returns whether the given
GltfAsset is binary
asset. |
static boolean |
isDefault(GltfAsset gltfAsset)
Returns whether the given
GltfAsset is a default
asset. |
static boolean |
isEmbedded(GltfAsset gltfAsset)
Returns whether the given
GltfAsset is an embedded
asset. |
public static boolean isDefault(GltfAsset gltfAsset)
GltfAsset is a default
asset. This means that it does not contain a (non-empty)
binary data blob, and it
does not contain references with (embedded) data URIs.gltfAsset - The GltfAssetpublic static boolean isEmbedded(GltfAsset gltfAsset)
GltfAsset is an embedded
asset. This means that it does not contain a (non-empty)
binary data blob, and it
does not contain references that refer to files.gltfAsset - The GltfAssetpublic static boolean isBinary(GltfAsset gltfAsset)
GltfAsset is binary
asset. This means that it does does not contain references
that refer to files or have (embedded) data URIs. (Note that
this method returns true in this case even if
the asset does not have a binary data
blob)gltfAsset - The GltfAssetCopyright © 2022. All Rights Reserved.