Inheritance: java.io.OutputStream
 /// <summary>
 /// Causes this piped input stream to be connected to the piped  output stream <code>src</code>.
 /// </summary>
 public void connect(PipedOutputStream src)
 {
 }
 /// <summary>
 /// Causes this piped input stream to be connected to the piped  output stream <code>src</code>.
 /// </summary>
 public void connect(PipedOutputStream src)
 {
 }
Exemplo n.º 3
0
        /// <summary>
        /// Creates a <code>PipedInputStream</code> so that it is
        /// connected to the piped output stream
        /// <code>src</code> and uses the specified pipe size for
        /// the pipe's buffer.
        /// Data bytes written to <code>src</code> will then
        /// be available as input from this stream.
        /// </summary>
        /// <param name="src">   the stream to connect to. </param>
        /// <param name="pipeSize"> the size of the pipe's buffer. </param>
        /// <exception cref="IOException">  if an I/O error occurs. </exception>
        /// <exception cref="IllegalArgumentException"> if {@code pipeSize <= 0}.
        /// @since      1.6 </exception>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public PipedInputStream(PipedOutputStream src, int pipeSize) throws IOException
        public PipedInputStream(PipedOutputStream src, int pipeSize)
        {
            InitPipe(pipeSize);
            Connect(src);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Causes this piped input stream to be connected
        /// to the piped  output stream <code>src</code>.
        /// If this object is already connected to some
        /// other piped output  stream, an <code>IOException</code>
        /// is thrown.
        /// <para>
        /// If <code>src</code> is an
        /// unconnected piped output stream and <code>snk</code>
        /// is an unconnected piped input stream, they
        /// may be connected by either the call:
        ///
        /// <pre><code>snk.connect(src)</code> </pre>
        /// </para>
        /// <para>
        /// or the call:
        ///
        /// <pre><code>src.connect(snk)</code> </pre>
        /// </para>
        /// <para>
        /// The two calls have the same effect.
        ///
        /// </para>
        /// </summary>
        /// <param name="src">   The piped output stream to connect to. </param>
        /// <exception cref="IOException">  if an I/O error occurs. </exception>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void connect(PipedOutputStream src) throws IOException
        public virtual void Connect(PipedOutputStream src)
        {
            src.Connect(this);
        }
Exemplo n.º 5
0
        /// <summary>
        /// Creates a <code>PipedInputStream</code> so
        /// that it is connected to the piped output
        /// stream <code>src</code>. Data bytes written
        /// to <code>src</code> will then be  available
        /// as input from this stream.
        /// </summary>
        /// <param name="src">   the stream to connect to. </param>
        /// <exception cref="IOException">  if an I/O error occurs. </exception>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public PipedInputStream(PipedOutputStream src) throws IOException
        public PipedInputStream(PipedOutputStream src) : this(src, DEFAULT_PIPE_SIZE)
        {
        }