public PipedInputStream() { thisLock = new object (); dataEvent = new ManualResetEvent (false); buffer = new byte[PIPE_SIZE + 1]; }