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

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