>::open(file_path, options = {}, :external_encoding =&gt; nil, :transcode_options =&gt; {}, &amp;block)</pre>

<p>Open file path and create stream writer associated with opened file. Data will be transcoded to <code>:external_encoding</code> using <code>:transcode_options</code> before compressing.</p>

<p>It may be tricky to use both <code>:pledged_size</code> and <code>:transcode_options</code>. You have to provide size of transcoded input.</p>

<pre>::new(destination_io, options = {}, :external_encoding 