Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FilesReaderSingleton

Read files

  • in browser use FileReader API
  • in electron, use Node.js native fs package

Hierarchy

  • FilesReaderSingleton

Index

Constructors

Private constructor

Properties

browserReader

browserReader: FileReader = new FileReader()

electronReader

electronReader: any

Static Private instance

Methods

Private readFileFromBrowser

  • readFileFromBrowser(file: any): Promise<ReadedFile>

Private readFileFromElectron

Private readFileFromFetchCall

readFilesFromBrowser

  • readFilesFromBrowser(files: FileEntry[]): Promise<ReadedFile[]>

readFilesFromElectron

readFilesFromFetchCall

  • readFilesFromFetchCall(files: FileEntry[]): Promise<ReadedFile[]>

Static getInstance

Generated using TypeDoc