writeToFile
Write the contents of this ByteStream to file and close it
Return
the number of bytes written
Write the contents of this ByteStream to file at the given path
Return
the number of bytes written
Write the contents of this ByteStream to file and close it
the number of bytes written
Write the contents of this ByteStream to file at the given path
the number of bytes written