private void readIntoBuffer(InputStream is) throws IOException {
  if (is == null) {
    throw new IOException("Class not found");
  }
  bSize=0;
  while (true) {
    int n=is.read(b,bSize,b.length - bSize);
    if (n == -1) {
      break;
    }
    bSize+=n;
    if (bSize >= b.length) {
      byte[] c=new byte[b.length << 2];
      System.arraycopy(b,0,c,0,b.length);
      b=c;
    }
  }
}

private void readIntoBuffer ( InputStream is ) throws IOException { if ( is == null ) { throw new IOException ( "Class not found" ) ; } bSize = 0 ; while ( true ) { int n = is . read ( b , bSize , b . length - bSize ) ; if ( n == - 1 ) { break ; } bSize += n ; if ( bSize >= b . length ) { byte [ ] c = new byte [ b . length << 2 ] ; System . arraycopy ( b , 0 , c , 0 , b . length ) ; b = c ; } } }
read class file content into shared buffer from input stream stream won ' t be closed
