Updated the documentation to use "method" instead of the original parameter name, "compressionMethod"
Added writeIntoBuffer method