ConsoleTextReader
classin packageklyn.io
public class ConsoleTextReader extends Object implements TextReader:
└ 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
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public 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
methodInherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml
methodInherited Methods from TextReader: readAllText, readLine, readLines
methodInherited Methods from AutoClosable: close