Search
Preparing search index...
The search index is not available
ngl
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
FileStreamer
Class FileStreamer
Hierarchy
Streamer
FileStreamer
Index
Constructors
constructor
Properties
__partial
Line
__pointer
binary
chunk
Size
compressed
data
json
newline
src
xml
Methods
_chunk
_read
as
Text
chunk
chunk
Count
chunk
ToLines
dispose
each
Chunk
each
Chunk
OfLines
is
Binary
next
Chunk
next
Chunk
OfLines
peek
Lines
read
Constructors
constructor
new
File
Streamer
(
src
:
any
, params
?:
StreamerParams
)
:
FileStreamer
Parameters
src:
any
Default value
params:
StreamerParams
= {}
Returns
FileStreamer
Properties
Protected
__partial
Line
__partial
Line
:
string
= ""
Protected
__pointer
__pointer
:
number
= 0
binary
binary
:
boolean
chunk
Size
chunk
Size
:
number
= 1024 * 1024 * 10
compressed
compressed
:
string
|
false
data
data
:
any
json
json
:
boolean
newline
newline
:
string
= ""
src
src
:
any
xml
xml
:
boolean
Methods
Protected
_chunk
_chunk
(
start
:
number
, end
:
number
)
:
any
Parameters
start:
number
end:
number
Returns
any
_read
_read
(
)
:
Promise
<
Object
>
Returns
Promise
<
Object
>
as
Text
as
Text
(
)
:
any
Returns
any
chunk
chunk
(
start
:
number
)
:
any
Parameters
start:
number
Returns
any
chunk
Count
chunk
Count
(
)
:
number
Returns
number
chunk
ToLines
chunk
ToLines
(
chunk
:
string
|
Uint8Array
, partialLine
:
string
, isLast
:
boolean
)
:
object
Parameters
chunk:
string
|
Uint8Array
partialLine:
string
isLast:
boolean
Returns
object
lines
:
string
[]
partial
Line
:
string
dispose
dispose
(
)
:
void
Returns
void
each
Chunk
each
Chunk
(
callback
:
function
)
:
void
Parameters
callback:
function
(
chunk
:
string
|
Uint8Array
, chunkNo
:
number
, chunkCount
:
number
)
:
void
Parameters
chunk:
string
|
Uint8Array
chunkNo:
number
chunkCount:
number
Returns
void
Returns
void
each
Chunk
OfLines
each
Chunk
OfLines
(
callback
:
function
)
:
void
Parameters
callback:
function
(
chunk
:
string
[]
, chunkNo
:
number
, chunkCount
:
number
)
:
void
Parameters
chunk:
string
[]
chunkNo:
number
chunkCount:
number
Returns
void
Returns
void
is
Binary
is
Binary
(
)
:
string
|
true
|
false
Returns
string
|
true
|
false
next
Chunk
next
Chunk
(
)
:
any
Returns
any
next
Chunk
OfLines
next
Chunk
OfLines
(
)
:
undefined
|
string
[]
Returns
undefined
|
string
[]
peek
Lines
peek
Lines
(
m
:
number
)
:
string
[]
Parameters
m:
number
Returns
string
[]
read
read
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
Globals
File
Streamer
constructor
__partial
Line
__pointer
binary
chunk
Size
compressed
data
json
newline
src
xml
_chunk
_read
as
Text
chunk
chunk
Count
chunk
ToLines
dispose
each
Chunk
each
Chunk
OfLines
is
Binary
next
Chunk
next
Chunk
OfLines
peek
Lines
read
Generated using
TypeDoc