Class: TextFileReader
Read a .txt file
Extends
Constructors
new TextFileReader()
new TextFileReader():
TextFileReader
Returns
Inherited from
Methods
loadData()
Parameters
• filePath: string
Returns
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:188
loadDataAsContent()
loadDataAsContent(
fileContent
):Promise
<Document
<Metadata
>[]>
Parameters
• fileContent: Uint8Array
<ArrayBufferLike
>
Returns
Overrides
Defined in
packages/readers/text/dist/index.d.ts:7
addMetaData()
static
addMetaData(filePath
): (doc
,index
) =>void
Parameters
• filePath: string
Returns
Function
Parameters
• index: number
Returns
void
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:189