public static String loadDigestes(JarFile jarFile,JarEntry je) throws Exception {
  InputStream bis=null;
  StringBuilder sb=new StringBuilder();
  try {
    InputStream is=jarFile.getInputStream(je);
    byte[] bytes=new byte[ShareConstants.BUFFER_SIZE];
    bis=new BufferedInputStream(is);
    int readBytes;
    while ((readBytes=bis.read(bytes)) > 0) {
      sb.append(new String(bytes,0,readBytes));
    }
  }
  finally {
    closeQuietly(bis);
  }
  return sb.toString();
}

public static String loadDigestes ( JarFile jarFile , JarEntry je ) throws Exception { InputStream bis = null ; StringBuilder sb = new StringBuilder ( ) ; try { InputStream is = jarFile . getInputStream ( je ) ; byte [ ] bytes = new byte [ ShareConstants . BUFFER_SIZE ] ; bis = new BufferedInputStream ( is ) ; int readBytes ; while ( ( readBytes = bis . read ( bytes ) ) > 0 ) { sb . append ( new String ( bytes , 0 , readBytes ) ) ; } } finally { closeQuietly ( bis ) ; } return sb . toString ( ) ; }
for faster , read and get the contents
