METHOD_0 ( ) { java . io . File f = new java . io . File ( STRING_0 ) ; java . lang . StringBuilder sb = new java . lang . StringBuilder ( STRING_1 ) ; sb . append ( f . METHOD_1 ( ) . METHOD_2 ( ) ) ; sb . append ( STRING_2 ) ; org . apache . tomcat . IDENT_0 IDENT_1 = org . apache . tomcat . util . IDENT_2 . IDENT_3 . newInstance ( new java . net . URL ( sb . toString ( ) ) ) ; java . io . InputStream IDENT_4 = IDENT_1 . METHOD_3 ( STRING_3 ) ; java . io . ByteArrayOutputStream IDENT_5 = new java . io . ByteArrayOutputStream ( ) ; org . apache . IDENT_6 . util . IDENT_7 . flow ( IDENT_4 , IDENT_5 ) ; java . io . InputStream IDENT_8 = IDENT_1 . METHOD_3 ( STRING_3 ) ; java . io . ByteArrayOutputStream IDENT_9 = new java . io . ByteArrayOutputStream ( ) ; org . apache . IDENT_6 . util . IDENT_7 . flow ( IDENT_8 , IDENT_9 ) ; "<AssertPlaceHolder>" ; } toByteArray ( ) { int IDENT_10 = count ; if ( IDENT_10 == 0 ) { return org . apache . tomcat . util . http . IDENT_11 . ByteArrayOutputStream . IDENT_12 ; } final byte [ ] IDENT_13 = new byte [ IDENT_10 ] ; int pos = 0 ; for ( final byte [ ] buf : IDENT_14 ) { final int c = java . lang . Math . min ( buf . length , IDENT_10 ) ; java . lang . System . METHOD_4 ( buf , 0 , IDENT_13 , pos , c ) ; pos += c ; IDENT_10 OP_0 c ; if ( IDENT_10 == 0 ) { break ; } } return IDENT_13 ; }
org . junit . Assert . assertArrayEquals ( IDENT_5 . toByteArray ( ) , IDENT_9 . toByteArray ( ) )