fun Reader.copyTo( out: Writer, bufferSize: Int = DEFAULT_BUFFER_SIZE ): Long
Copies this reader to the given out writer, returning the number of characters copied.
Note it is the caller's responsibility to close both of these resources.
out - writer to write to.
bufferSize - size of character buffer to use in process.
Return number of characters copied.
© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.