kotlin.io.java.io.InputStream.copyTo

copyTo

fun InputStream.copyTo(
    out: OutputStream, 
    bufferSize: Int = DEFAULT_BUFFER_SIZE
): Long

Platform and version requirements: JVM

Copies this stream to the given output stream, returning the number of bytes copied

Note It is the caller's responsibility to close both of these resources.

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
登录查看完整内容