private InputStreamReader createReader(InputStream is,String encoding) throws UnsupportedEncodingException {
  InputStreamReader r;
  if (encoding != null) {
    r=new InputStreamReader(is,encoding);
  }
 else {
    r=new InputStreamReader(is);
  }
  return r;
}

private InputStreamReader createReader ( InputStream is , String encoding ) throws UnsupportedEncodingException { InputStreamReader r ; if ( encoding != null ) { r = new InputStreamReader ( is , encoding ) ; } else { r = new InputStreamReader ( is ) ; } return r ; }
creates a new inputstreamreader with provide encoding
