public StreamConsumer(InputStream stream){
  in=new BufferedInputStream(stream);
  thread.start();
}

public StreamConsumer ( InputStream stream ) { in = new BufferedInputStream ( stream ) ; thread . start ( ) ; }
creates a streamconsumer for consuming the data from the input stream .
