API / geotoolkit / contour / datasource / AbstractDataLoader / AbstractDataLoader
datasource.AbstractDataLoader.AbstractDataLoader
An abstract class for data loaders
AbstractDataLoader
Constructors
Constructors
• Protected new AbstractDataLoader(options?)
| Name | Type |
|---|---|
Optional options | Object |
Optional options.httpservice | AbstractHttpService |
Methods
▸ getClassName(): string
string
▸ Abstract getDataSource(text, name): ContourDataSource
Creates data source
| Name | Type | Description |
|---|---|---|
text | string | data in text format |
name | string | source name |
dataSource
▸ load(file): Promise<ContourDataSource>
Returns the AbstractDataLoader that is loaded from the passed in file.
| Name | Type | Description |
|---|---|---|
file | string | File | the local file to read |
Promise<ContourDataSource>
dataSource The loaded data source.
▸ loadFromFile(file): Promise<ContourDataSource>
Loads data from file
| Name | Type | Description |
|---|---|---|
file | File | the local file to read |
Promise<ContourDataSource>
dataSource The loaded data source.
▸ loadFromURL(url): Promise<ContourDataSource>
Loads data from url
| Name | Type | Description |
|---|---|---|
url | string | url of the resource |
Promise<ContourDataSource>
dataSource The loaded data source.
▸ Static getClassName(): string
string