Ejemplo n.º 1
0
 internal InputStream(nsIInputStream inputStream)
 {
     _inputStream = inputStream;
     // refcount (+1)
     _seekableStream = Xpcom.QueryInterface <nsISeekableStream>(inputStream);
     _seekable       = _seekableStream != null;
 }
Ejemplo n.º 2
0
		private OutputStream( nsIOutputStream outputStream )
		{
			_outputStream = outputStream;
			_seekableStream = Xpcom.QueryInterface<nsISeekableStream>( outputStream );
			_seekable = _seekableStream != null;

		}
Ejemplo n.º 3
0
		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  );
 }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
0
 private OutputStream(nsIOutputStream outputStream)
 {
     _outputStream   = outputStream;
     _seekableStream = Xpcom.QueryInterface <nsISeekableStream>(outputStream);
     _seekable       = _seekableStream != null;
 }