saveInputStream

open fun saveInputStream(target: File, source: InputStream)

Utility method to save the input stream to the file provided.

Parameters

source

the input stream

target

the file to save the input stream

Throws

if the stream cannot be saved.