Home Reference Source Repository
import TextReader from 'dh3dlib/js/util/TextReader.js'
public class | source

TextReader

TextReader class

Constructor Summary

Public Constructor
public

constructor(url: string, encoding: string, onload: function, onerror: function)

constructor

Member Summary

Public Members
public

data: *

public
public
public
public
public
public

Method Summary

Public Methods
public

getText(): *

public
public
public

readData(length: *)

public
public
public
public

readInteger(length: *, signed: *)

public
public

readString(length: *)

public
public
public

Public Constructors

public constructor(url: string, encoding: string, onload: function, onerror: function) source

constructor

Params:

NameTypeAttributeDescription
url string
encoding string
onload function
onerror function

Public Members

public data: * source

public encoding: * source

public eof: boolean source

public onerrorFunc: * source

public onloadFunc: * source

public position: number source

public url: string source

Public Methods

public getText(): * source

Return:

*

public hasBytesAvailable(): * source

Return:

*

public readByte() source

public readData(length: *) source

Params:

NameTypeAttributeDescription
length *

public readDouble() source

public readFloat() source

public readInt() source

public readInteger(length: *, signed: *) source

Params:

NameTypeAttributeDescription
length *
signed *

public readShort() source

public readString(length: *) source

Params:

NameTypeAttributeDescription
length *

public readUnsignedByte() source

public readUnsignedInt() source

public readUnsignedShort() source