Bug 1431441 - Part 6 - Start middleman WebReplay process sandbox later r=Alex_Gaynor
[gecko.git] / xpcom / io / nsIMultiplexInputStream.idl
blob96f9628d41eb0602c5ca841a961a2cdae1c67535
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsIInputStream.idl"
8 /**
9 * The multiplex stream concatenates a list of input streams into a single
10 * stream.
13 [scriptable, uuid(a076fd12-1dd1-11b2-b19a-d53b5dffaade)]
14 interface nsIMultiplexInputStream : nsISupports
16 /**
17 * Number of streams in this multiplex-stream
19 readonly attribute unsigned long count;
21 /**
22 * Appends a stream to the end of the streams. The cursor of the stream
23 * should be located at the beginning of the stream if the implementation
24 * of this nsIMultiplexInputStream also is used as an nsISeekableStream.
25 * @param stream stream to append
27 void appendStream(in nsIInputStream stream);
29 /**
30 * Get stream at specified index.
31 * @param index return stream at this index, must be < count
32 * @return stream at specified index
34 nsIInputStream getStream(in unsigned long index);