API / geotoolkit / seismic / data / LocalFile / LocalFile
Creates wrapper class for a file reader.
Constructors
Constructors
• new LocalFile(fileName)
Creates wrapper class for a file reader.
| Name | Type | Description |
|---|---|---|
fileName | string | File | file names |
Methods
▸ getFileName(): string
Returns file name
string
▸ getFileSize(): number
Return file size
number
▸ readBinarySection(callback, from, to): void
Returns binary raw data
| Name | Type | Description |
|---|---|---|
callback | (data: Uint8Array) => void | this is the function called when data is ready |
from | number | offset in bytes |
to | number | offset in bytes |
void
▸ Static isSupported(): boolean
Return true if local file is supported
boolean