Home Reference Source Test
public class | source

CSVFileMixins

Extends:

StorageClass → CSVFileMixins

This CSVFileMixins class provide mixins for handle read/write/fetch csv content

Method Summary

Public Methods
public

async fetchCSVFile(url: Url , filePath: String ): Promise

fetch CSV file, transform to get raw pixel data and save to file at the filePath

public

async readCSVFile(filePath: String ): Promise

Read CSV content as item array given the file path

public

async writeCSVFile(): *

Public Methods

public async fetchCSVFile(url: Url , filePath: String ): Promise source

fetch CSV file, transform to get raw pixel data and save to file at the filePath

Params:

NameTypeAttributeDescription
url Url

url for png file

filePath String

file name to save content

Return:

Promise

Array content promiser

public async readCSVFile(filePath: String ): Promise source

Read CSV content as item array given the file path

Params:

NameTypeAttributeDescription
filePath String

full file path

Return:

Promise

Array content promise

public async writeCSVFile(): * source

Return:

*