private OutputStream(nsIOutputStream outputStream, nsISeekableStream seekableStream)
 {
     _outputStream = outputStream;
     _seekableStream = seekableStream;
     _seekable = _seekableStream != null;
     var binaryOutputStream = Xpcom.CreateInstance<nsIBinaryOutputStream>( "@mozilla.org/binaryoutputstream;1" );
     _binaryOutputStream = Xpcom.QueryInterface<nsIBinaryOutputStream>( binaryOutputStream );
     _binaryOutputStream.SetOutputStream(_outputStream  );
 }
Example #2
0
        private OutputStream(nsIOutputStream outputStream, nsISeekableStream seekableStream)
        {
            _outputStream   = outputStream;
            _seekableStream = seekableStream;
            _seekable       = _seekableStream != null;
            var binaryOutputStream = Xpcom.CreateInstance <nsIBinaryOutputStream>("@mozilla.org/binaryoutputstream;1");

            _binaryOutputStream = Xpcom.QueryInterface <nsIBinaryOutputStream>(binaryOutputStream);
            _binaryOutputStream.SetOutputStream(_outputStream);
        }