/// <summary> /// The public constructor for the 'process' module. /// </summary> /// <param name="env">The JavaScript environment.</param> public ProcessModule(IronJS.Environment env) : base(env) { // Open the console streams. this.m_stdout = new NodeWritableStream(env, new StreamWriter(Console.OpenStandardOutput())); this.m_stderr = new NodeWritableStream(env, new StreamWriter(Console.OpenStandardError())); this.m_stdin = new NodeReadableStream(env, new StreamReader(Console.OpenStandardInput())); }
/// <summary> /// <see>http://nodejs.org/docs/v0.4.8/api/streams.html#stream.pipe</see> /// </summary> public override void pipe(NodeWritableStream destination, IronJS.ArrayObject options) { this.m_PipeDestination = destination; this.m_PipeDestination.DoPipe(this); }
/// <summary> /// <see>http://nodejs.org/docs/v0.4.8/api/streams.html#stream.pipe</see> /// </summary> public override void pipe(NodeWritableStream destination) { pipe(destination, null); }
public abstract void pipe(NodeWritableStream destination, IronJS.ArrayObject options);
public abstract void pipe(NodeWritableStream destination);
/// <summary> /// <see>http://nodejs.org/docs/v0.4.8/api/streams.html#stream.pipe</see> /// </summary> public override void pipe(NodeWritableStream destination, IronJS.ArrayObject options) { throw new NotSupportedException(); }
/// <summary> /// <see>http://nodejs.org/docs/v0.4.8/api/streams.html#stream.pipe</see> /// </summary> public override void pipe(NodeWritableStream destination) { throw new NotSupportedException(); }