Last updated

API / geotoolkit / seismic / data / LocalFile / LocalFile

Class: LocalFile

data.LocalFile.LocalFile

Creates wrapper class for a file reader.

Table of contents

Constructors
Methods

Contents

Constructors

new LocalFile(fileName)

new LocalFile(fileName)

Creates wrapper class for a file reader.

Parameters

Name Type Description
fileNamestring | Filefile names
Methods

getFileName

getFileName(): string

Returns file name

Returns

string


getFileSize

getFileSize(): number

Return file size

Returns

number


readBinarySection

readBinarySection(callback, from, to): void

Returns binary raw data

Parameters

Name Type Description
callback(data: Uint8Array) => voidthis is the function called when data is ready
fromnumberoffset in bytes
tonumberoffset in bytes

Returns

void


isSupported

Static isSupported(): boolean

Return true if local file is supported

Returns

boolean