question: 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 ; } } }
target:  Read class file content into shared buffer from input stream Stream won't be closed