From f6e0ef83e568ffbebb22ecabddfa67fbe716e644 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Tue, 22 Sep 2015 18:32:19 +0300 Subject: [PATCH] Move constants out of Console.kt --- libraries/stdlib/src/kotlin/io/Console.kt | 15 --------------- libraries/stdlib/src/kotlin/io/Constants.kt | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 libraries/stdlib/src/kotlin/io/Constants.kt diff --git a/libraries/stdlib/src/kotlin/io/Console.kt b/libraries/stdlib/src/kotlin/io/Console.kt index 919c5367a9d..c0ebf21e347 100644 --- a/libraries/stdlib/src/kotlin/io/Console.kt +++ b/libraries/stdlib/src/kotlin/io/Console.kt @@ -5,21 +5,6 @@ import java.io.InputStream import java.io.InputStreamReader import java.io.BufferedReader -/** - * Returns the default buffer size when working with buffered streams. - */ -public val defaultBufferSize: Int = 64 * 1024 - -/** - * Returns the default block size for forEachBlock(). - */ -public val defaultBlockSize: Int = 4096 - -/** - * Returns the minimum block size for forEachBlock(). - */ -public val minimumBlockSize: Int = 512 - /** Prints the given message to the standard output stream. */ public fun print(message: Any?) { System.out.print(message) diff --git a/libraries/stdlib/src/kotlin/io/Constants.kt b/libraries/stdlib/src/kotlin/io/Constants.kt new file mode 100644 index 00000000000..d6cad17a046 --- /dev/null +++ b/libraries/stdlib/src/kotlin/io/Constants.kt @@ -0,0 +1,15 @@ +@file:JvmVersion +package kotlin.io + +/** + * Returns the default buffer size when working with buffered streams. + */ +public val defaultBufferSize: Int = 64 * 1024 +/** + * Returns the default block size for forEachBlock(). + */ +public val defaultBlockSize: Int = 4096 +/** + * Returns the minimum block size for forEachBlock(). + */ +public val minimumBlockSize: Int = 512 \ No newline at end of file