VSS.Text_Streams.File_Input

Entities

Tagged Types

Subprograms

Description

Copyright (C) 2022-2023, AdaCore

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

Close

procedure Close (Self : in out File_Input_Text_Stream'Class)

Close file.

Parameters
Self

File_Input_Text_Stream

type File_Input_Text_Stream is
  limited new VSS.Text_Streams.Input_Text_Stream with private;

Open

procedure Open
  (Self : in out File_Input_Text_Stream'Class;
   Name : VSS.Strings.Virtual_String)

Open file with the given name to load text data from. System defined encoding is used to decode text data.

Parameters
Self
Name

Open

procedure Open
  (Self     : in out File_Input_Text_Stream'Class;
   Name     : VSS.Strings.Virtual_String;
   Encoding : VSS.Strings.Virtual_String)

Open file with the given name to load text data encoded with given text encoding.

Parameters
Self
Name
Encoding

Set_Encoding

procedure Set_Encoding
  (Self     : in out File_Input_Text_Stream'Class;
   Encoding : VSS.Strings.Virtual_String)

Sets encoding of the data to be used to load information from the file. Encoding can be set only when file is not open.

Parameters
Self
Encoding