Exemplo n.º 1
0
 /// <summary>
 /// <p>This is a <code>Stream.prototype</code> method available on all <code>Stream</code>s.
 /// </p>
 /// <p>Connects this read stream to <code>destination</code> WriteStream. Incoming data on
 /// this stream gets written to <code>destination</code>. The destination and source
 /// streams are kept in sync by pausing and resuming as necessary.
 /// </p>
 /// <p>This function returns the <code>destination</code> stream.
 /// </p>
 /// <p>Emulating the Unix <code>cat</code> command:
 /// </p>
 /// <pre><code>process.stdin.resume(); process.stdin.pipe(process.stdout);</code></pre>
 /// <p>By default <code>end()</code> is called on the destination when the source stream
 /// emits <code>end</code>, so that <code>destination</code> is no longer writable. Pass <code>{ end:
 /// false }</code> as <code>options</code> to keep the destination stream open.
 /// </p>
 /// <p>This keeps <code>process.stdout</code> open so that &quot;Goodbye&quot; can be written at the
 /// end.
 /// </p>
 /// <pre><code>process.stdin.resume();
 /// process.stdin.pipe(process.stdout, { end: false });
 /// process.stdin.on(&quot;end&quot;, function() {
 /// process.stdout.write(&quot;Goodbye\n&quot;); });</code></pre>
 /// </summary>
 public object pipe(object destination, PipeOptions options) { return null; }
Exemplo n.º 2
0
 /// <summary>
 /// <p>This is a <code>Stream.prototype</code> method available on all <code>Stream</code>s.
 /// </p>
 /// <p>Connects this read stream to <code>destination</code> WriteStream. Incoming data on
 /// this stream gets written to <code>destination</code>. The destination and source
 /// streams are kept in sync by pausing and resuming as necessary.
 /// </p>
 /// <p>This function returns the <code>destination</code> stream.
 /// </p>
 /// <p>Emulating the Unix <code>cat</code> command:
 /// </p>
 /// <pre><code>process.stdin.resume(); process.stdin.pipe(process.stdout);</code></pre>
 /// <p>By default <code>end()</code> is called on the destination when the source stream
 /// emits <code>end</code>, so that <code>destination</code> is no longer writable. Pass <code>{ end:
 /// false }</code> as <code>options</code> to keep the destination stream open.
 /// </p>
 /// <p>This keeps <code>process.stdout</code> open so that &quot;Goodbye&quot; can be written at the
 /// end.
 /// </p>
 /// <pre><code>process.stdin.resume();
 /// process.stdin.pipe(process.stdout, { end: false });
 /// process.stdin.on(&quot;end&quot;, function() {
 /// process.stdout.write(&quot;Goodbye\n&quot;); });</code></pre>
 /// </summary>
 public object pipe(object destination, PipeOptions options)
 {
     return(null);
 }