Avoid introducing Path.printWriter

#KT-19192
This commit is contained in:
Ilya Gorbunov
2020-10-19 06:52:13 +03:00
parent 9f659d74df
commit e7c888a2e6
2 changed files with 0 additions and 39 deletions
@@ -72,16 +72,6 @@ public inline fun Path.bufferedWriter(
return writer(charset, *options).buffered(bufferSize)
}
/**
* Returns a new [PrintWriter] for writing the content of this file.
*/
@SinceKotlin("1.4")
@ExperimentalPathApi
@kotlin.internal.InlineOnly
public inline fun Path.printWriter(charset: Charset = Charsets.UTF_8, vararg options: OpenOption): PrintWriter {
return PrintWriter(bufferedWriter(charset, options = options))
}
/**
* Gets the entire content of this file as a byte array.
*