static byte [ ] METHOD_1 ( java.io.InputStream VAR_1 , int VAR_2 ) throws java.io.IOException { byte [ ] b = new byte [ VAR_2 ] ; int n = VAR_1 . METHOD_2 ( b ) ; if ( n != VAR_2 ) throw new TYPE_1 ( STRING_1 ) ; return b ; }

static byte [ ] METHOD_1 ( java.io.InputStream VAR_1 , int VAR_2 ) throws java.io.IOException { byte [ ] b = new byte [ VAR_2 ] ; int count = 0 ; do { int n = VAR_1 . METHOD_2 ( b , count , ( VAR_2 - count ) ) ; if ( n > 0 ) { count += n ; } else { throw new TYPE_1 ( STRING_1 ) ; } } while ( count < VAR_2 ) ; return b ; }
