public static final class HspcModelDecoder.Options.Builder extends Object implements AutoCloseable
Builder
for the HSPC options.Constructor and Description |
---|
Builder(HspcModelDecoder.Options.Builder other) |
Modifier and Type | Method and Description |
---|---|
HspcModelDecoder.Options |
build()
Builds the options for the HSPC decoder.
|
void |
close() |
HspcModelDecoder.Options.Builder |
dataLoader(IDataLoader dataLoader)
Sets the data loader to be used for fetching the data.
|
protected void |
finalize() |
HspcModelDecoder.Options.Builder |
httpClient(IHttpClient httpClient)
Sets the http client to be used for fetching the data.
|
public Builder(@NotNull HspcModelDecoder.Options.Builder other)
public void close()
close
in interface AutoCloseable
@NotNull public HspcModelDecoder.Options build() throws IllegalStateException
IllegalStateException
- If not all mandatory parameters are set or if both a custom http client and a custom loader are set.@NotNull public HspcModelDecoder.Options.Builder dataLoader(@Nullable IDataLoader dataLoader)
Calling this function is optional.
See related article for an example on how to customize 3D tiles data loading.
dataLoader
- custom loader implementation to fetch the HSPC resources. When null
the decoder uses its own data loader.@NotNull public HspcModelDecoder.Options.Builder httpClient(@Nullable IHttpClient httpClient)
Calling this function is optional.
See related article for an example on how to customize HTTP requests when loading data.
httpClient
- HTTP client implementation to fetch the HSPC resources. When null
the decoder uses its own HTTP client.