Skip to content

Navigation Menu

Sign inAppearance settings
Appearance settings

Latest commit

 

History

History
History
43 lines (33 loc) · 1.56 KB

File metadata and controls

43 lines (33 loc) · 1.56 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package kotlin.io
/** Prints the line separator to the standard output stream. */
public expect fun println()
/** Prints the given [message] and the line separator to the standard output stream. */
public expect fun println(message: Any?)
/** Prints the given [message] to the standard output stream. */
public expect fun print(message: Any?)
/**
* Reads a line of input from the standard input stream and returns it,
* or throws a [RuntimeException] if EOF has already been reached when [readln] is called.
*
* LF or CRLF is treated as the line terminator. Line terminator is not included in the returned string.
*
* Currently this function is not supported in Kotlin/JS and in Kotlin/Wasm, and throws [UnsupportedOperationException].
*/
@SinceKotlin("1.6")
public expect fun readln(): String
/**
* Reads a line of input from the standard input stream and returns it,
* or return `null` if EOF has already been reached when [readlnOrNull] is called.
*
* LF or CRLF is treated as the line terminator. Line terminator is not included in the returned string.
*
* Currently this function is not supported in Kotlin/JS and in Kotlin/Wasm, and throws [UnsupportedOperationException].
*/
@SinceKotlin("1.6")
public expect fun readlnOrNull(): String?
internal class ReadAfterEOFException(message: String?) : RuntimeException(message)
internal expect interface Serializable
Morty Proxy This is a proxified and sanitized view of the page, visit original site.