MemoryLoader

Memory loader.

Constructor

new MemoryLoader()

Methods

abort()

Abort a load.

getDefaultCharacterSet() → {string}

Get the default character set.

Returns:

The default character set.

Type: 
string

load(data)

Load a list of buffers.

Parameters:
NameTypeDescription
dataArray

The list of buffers to load.

onabort(_event)

Handle an abort event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The abort event.

onerror(_event)

Handle an error event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The error event.

onload(_event)

Handle a load event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The load event fired when a file has been loaded successfully.

onloadend(_event)

Handle a load end event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The load end event fired when a file load has completed, successfully or not.

onloaditem(_event)

Handle a load item event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The load item event fired when a file item has been loaded successfully.

onloadstart(_event)

Handle a load start event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The load start event.

onprogress(_event)

Handle a load progress event. Default does nothing.

Parameters:
NameTypeDescription
_eventobject

The progress event.

setDefaultCharacterSet(characterSet)

Set the default character set.

Parameters:
NameTypeDescription
characterSetstring

The character set.