VSS.JSON.Push_Readers.Simple

Entities

Tagged Types

Subprograms

Description

Copyright (C) 2021, AdaCore

SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

Error_Message

function Error_Message
  (Self : JSON_Simple_Push_Reader'Class) return VSS.Strings.Virtual_String

Return text of the last detected error.

Parameters
Self
Return Value

Has_Error

function Has_Error (Self : JSON_Simple_Push_Reader'Class) return Boolean

Return True when some error is detected by the parser of reported by the handlers.

Parameters
Self
Return Value

JSON_Simple_Push_Reader

type JSON_Simple_Push_Reader is
  limited new VSS.JSON.Push_Readers.JSON_Push_Reader
    with private;

Parse

procedure Parse (Self : in out JSON_Simple_Push_Reader'Class)

Parse all available data and return. It can be called again when non-blocking text stream is used and new data is available.

Parameters
Self

Set_Stream

procedure Set_Stream
  (Self   : in out JSON_Simple_Push_Reader'Class;
   Stream : not null VSS.Text_Streams.Input_Text_Stream_Access)

Set text stream to be used to obtain data.

Parameters
Self
Stream