getFileContents

abstract fun getFileContents(writer: OutputStream): Int

Write the contents of the file being dragged out of the web view into |writer|. Returns the number of bytes sent to |writer|. If |writer| is NULL this method will return the size of the file contents in bytes. Call getFileName() to get a suggested name for the file.

Return

The number of bytes sent to writer. If writer is NULL the size of the file contents in bytes is returned.

Parameters

writer

Writes the contents into this object.