JsonValueStream

Description

sealed class Tinman.Core.Json.JsonValueStream

Derived from

JsonStream abstract

A IJsonStream implementation that directly operates on JsonValue. objects.

Public / Constructors

Json​Value​Stream

2 overloads


public constructor JsonValueStream1 → (2)

value opt : JsonValue = null

The JSON node to operate on.

path opt : Path = null

The Path to return from IPathInfo.PathInfo.

Creates a new instance of JsonValueStream for writing.

The JSON stream will operate on the given value opt object.


public constructor JsonValueStream2 → (2)

value in : IJsonValue

[not-null]
The JSON node to operate on.

path opt : Path = null

The Path to return from IPathInfo.PathInfo.

Creates a new instance of JsonValueStream for reading.

The JSON stream will operate on the given value in object.

Public / Methods

Flip


public method Flip → ()

returns → JsonValueStream

this

Finishes writing to this stream and flips it to read mode.

IOException

If an I/O error has occurred.