ConsoleTextReader
class in package klyn.io

    public class ConsoleTextReader extends Object implements TextReader:

Object
└ ConsoleTextReader
All Implemented Interfaces: TextReader

Text reader backed by the process standard input stream.

Applications normally use the shared instance exposed by `Application.in`.

Example

line = Application.in.readLine()

Inherited Properties
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | ConsoleTextReader `ConsoleTextReader():` | Creates a standard-input reader.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | close `close() as Void:` | Leaves the process-owned standard input stream open.
public | readAllText `readAllText() as String throws IOException:` | Reads all remaining text from standard input.
public | readLine `readLine() as String throws IOException:` | Reads one standard-input line, preserving its line terminator.
public | readLines `readLines() as ArrayList<String> throws IOException:` | Reads all remaining standard-input lines.

Inherited Methods
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml
method Inherited Methods from TextReader: readAllText, readLine, readLines
method Inherited Methods from AutoClosable: close