Package com.luciad.loaders
Interface IDataLoader
public interface IDataLoader
Interface for loading data from a path into memory.
See related article for an example on how to customize 3D tiles data loading.
-
Method Summary
Modifier and TypeMethodDescriptionload
(String path, CancellationToken token) Returns the data resource loaded from the given path.
-
Method Details
-
load
Returns the data resource loaded from the given path.The download process can be canceled by the means of the
cancellation token
. It is up to the implementer to verify that the cancellation token state is set totrue
during the operation. When set totrue
this indicates that a resource is no longer needed. The return value then can be anErrorInfo
object with the error codeinvalid reference
Canceled
- Parameters:
path
- Path to the resource.token
- Cancellation token. This is optional and can be anulltpr
.- Returns:
- the data resources as
DataEntity
. - Throws:
IOException
- when loading the data fails.
-