internal InputStream(nsIInputStream inputStream) { _inputStream = inputStream; // refcount (+1) _seekableStream = Xpcom.QueryInterface <nsISeekableStream>(inputStream); _seekable = _seekableStream != null; }
private OutputStream( nsIOutputStream outputStream ) { _outputStream = outputStream; _seekableStream = Xpcom.QueryInterface<nsISeekableStream>( outputStream ); _seekable = _seekableStream != null; }
internal InputStream( nsIInputStream inputStream ) { _inputStream = inputStream; // refcount (+1) _seekableStream = Xpcom.QueryInterface<nsISeekableStream>( inputStream ); _seekable = _seekableStream != null; }
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 ); }
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); }
private OutputStream(nsIOutputStream outputStream) { _outputStream = outputStream; _seekableStream = Xpcom.QueryInterface <nsISeekableStream>(outputStream); _seekable = _seekableStream != null; }