Make return type more specific for File.inputStream and File.outputStream, for String.byteInputStream
This commit is contained in:
@@ -190,14 +190,14 @@ public fun File.readLines(charset: String): List<String> = readLines(Charset.for
|
||||
/**
|
||||
* Constructs a new FileInputStream of this file and returns it as a result.
|
||||
*/
|
||||
public fun File.inputStream(): InputStream {
|
||||
public fun File.inputStream(): FileInputStream {
|
||||
return FileInputStream(this)
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a new FileOutputStream of this file and returns it as a result.
|
||||
*/
|
||||
public fun File.outputStream(): OutputStream {
|
||||
public fun File.outputStream(): FileOutputStream {
|
||||
return FileOutputStream(this)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user