---
title: JsonLinesStream
slug: data-platform/connect-platform/app-sdk-api-reference-classes-jsonlinesstream
docTags: 
createdAt: 2026-08-05T20:06:37.717Z
---

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT)

***

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT) / JsonLinesStream

# Class: JsonLinesStream\<T>

Defined in: [src/util/JsonLinesStream.ts:18](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/util/JsonLinesStream.ts#L18)

Superclass of stream file reader with the main
logic involve in processing a file line by line

## Extends

- [`` `FileStream` ``](docId\:IaTlsPBZINR77EAGdOEKd)\<`T`, `Options`>

## Type Parameters

### T

`T`

## Constructors

### Constructor

:::BlockQuote
**new JsonLinesStream**\<`T`>(`streamBuilder`, `rowProcessor`, `options`): `JsonLinesStream`\<`T`>
:::

Defined in: [src/util/JsonLinesStream.ts:55](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/util/JsonLinesStream.ts#L55)

### Parameters

### streamBuilder

[`` `FileReadableStreamBuilder` ``](docId\:yxB8TaJT1kdlRKojsLN6g)

### rowProcessor

[`` `FileRowProcessor` ``](docId\:DeOnAJfaOHxL8LkjURLkG)\<`T`>

### options

`Options` = `{}`

### Returns

`JsonLinesStream`\<`T`>

### Overrides

[`` `FileStream` ``](docId\:IaTlsPBZINR77EAGdOEKd).[`` `constructor` ``](<./#function Object() \{ \[native code] }>)

## Accessors

### isFinished

### Get Signature

:::BlockQuote
**get** **isFinished**(): `boolean`
:::

Defined in: [src/util/FileStream.ts:44](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/util/FileStream.ts#L44)

### Returns

`boolean`

### Inherited from

[`` `FileStream` ``](docId\:IaTlsPBZINR77EAGdOEKd).[`` `isFinished` ``](docId\:wPncjf6QwaPMeEmbswmmx)

## Methods

### fastforward()

:::BlockQuote
**fastforward**(`target`): `Promise`\<`null` | `string`>
:::

Defined in: [src/util/FileStream.ts:48](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/util/FileStream.ts#L48)

### Parameters

### target

`string`

### Returns

`Promise`\<`null` | `string`>

### Inherited from

[`` `FileStream` ``](docId\:IaTlsPBZINR77EAGdOEKd).[`` `fastforward` ``](docId\:wPncjf6QwaPMeEmbswmmx)

***

### processSome()

:::BlockQuote
**processSome**(): `Promise`\<`null` | `string`>
:::

Defined in: [src/util/FileStream.ts:53](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/util/FileStream.ts#L53)

### Returns

`Promise`\<`null` | `string`>

### Inherited from

[`` `FileStream` ``](docId\:IaTlsPBZINR77EAGdOEKd).[`` `processSome` ``](docId\:wPncjf6QwaPMeEmbswmmx)

***

### fromStream()

:::BlockQuote
`static` **fromStream**\<`T`>(`stream`, `processor`, `options`): `JsonLinesStream`\<`T`>
:::

Defined in: [src/util/JsonLinesStream.ts:25](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/util/JsonLinesStream.ts#L25)

Build a JsonLinesStream from an existing ReadableStream.

### Type Parameters

### T

`T`

### Parameters

### stream

`ReadableStream`

source stream for the JsonLines data

### processor

[`` `FileRowProcessor` ``](docId\:DeOnAJfaOHxL8LkjURLkG)\<`T`>

the row processor

### options

`Options` = `{}`

options to provide the JsonLinesParser Options

### Returns

`JsonLinesStream`\<`T`>

***

### fromUrl()

:::BlockQuote
`static` **fromUrl**\<`T`>(`url`, `processor`, `options`): `JsonLinesStream`\<`T`>
:::

Defined in: [src/util/JsonLinesStream.ts:39](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/util/JsonLinesStream.ts#L39)

Build a JsonLinesStream that reads from a web resource.

### Type Parameters

### T

`T`

### Parameters

### url

`string`

source url for the JsonLines data

### processor

[`` `FileRowProcessor` ``](docId\:DeOnAJfaOHxL8LkjURLkG)\<`T`>

the row processor

### options

`Options` = `{}`

options to provide the JsonLinesParser Options

### Returns

`JsonLinesStream`\<`T`>
