Avoid introducing Path.printWriter
#KT-19192
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user