private void bindStreams(){
  try {
    PipedOutputStream sendDataHere=new PipedOutputStream();
    PipedInputStream readDataHere=new PipedInputStream(sendDataHere);
    InputStreamReader readDataStream=new InputStreamReader(readDataHere);
    inputReader=new BufferedReader(readDataStream);
    PrintStream sendPrintHere=new PrintStream(sendDataHere);
    if (redirectWhat == REDIRECT_OUT) {
      writeHere=outArea;
      System.setOut(sendPrintHere);
    }
    if (redirectWhat == REDIRECT_ERROR) {
      writeHere=errArea;
      System.setErr(sendPrintHere);
    }
  }
 catch (  Exception exc) {
    exceptionShow(classname + "bindStreams: Exception=",exc);
  }
}

private void bindStreams ( ) { try { PipedOutputStream sendDataHere = new PipedOutputStream ( ) ; PipedInputStream readDataHere = new PipedInputStream ( sendDataHere ) ; InputStreamReader readDataStream = new InputStreamReader ( readDataHere ) ; inputReader = new BufferedReader ( readDataStream ) ; PrintStream sendPrintHere = new PrintStream ( sendDataHere ) ; if ( redirectWhat == REDIRECT_OUT ) { writeHere = outArea ; System . setOut ( sendPrintHere ) ; } if ( redirectWhat == REDIRECT_ERROR ) { writeHere = errArea ; System . setErr ( sendPrintHere ) ; } } catch ( Exception exc ) { exceptionShow ( classname + "bindStreams: Exception=" , exc ) ; } }
this tryes to bind the streams and the windows . if this fails i need to know about it .
