Home Reference Source Test
public class | source

FileAdapter

Constructor Summary

Public Constructor
public

constructor(path: *)

Member Summary

Public Members
public

Path of file.

Method Summary

Public Methods
public
public

getItem(key: string): nullable

public

removeItem(key: string): void

public

setItem(key: string, value: string): void

public

Public Constructors

public constructor(path: *) source

Params:

NameTypeAttributeDescription
path *

Path of file where will be data stored

Public Members

public path: string source

Path of file.

Public Methods

public getFileContent(): Object source

Return:

Object

public getItem(key: string): nullable source

Params:

NameTypeAttributeDescription
key string

Return:

nullable

public removeItem(key: string): void source

Params:

NameTypeAttributeDescription
key string

Return:

void

public setItem(key: string, value: string): void source

Params:

NameTypeAttributeDescription
key string
value string

Return:

void

public updateData(data: Object) source

Params:

NameTypeAttributeDescription
data Object