METHOD_0 ( ) { org . apache . IDENT_0 . pdf . IDENT_1 filters = stream . METHOD_1 ( ) ; filters . METHOD_2 ( STRING_0 ) ; byte [ ] bytes = METHOD_3 ( ) ; stream . METHOD_4 ( bytes ) ; java . io . ByteArrayOutputStream actual = new java . io . ByteArrayOutputStream ( ) ; org . apache . IDENT_0 . pdf . IDENT_2 IDENT_3 = stream . METHOD_5 ( ) ; IDENT_3 . METHOD_6 ( actual ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( java . io . IDENT_4 ) { java . io . InputStream in = METHOD_7 ( ) . METHOD_8 ( ) ; in = org . apache . IDENT_5 . image . loader . util . IDENT_6 . METHOD_9 ( in ) ; try { org . apache . IDENT_5 . image . loader . impl . IDENT_7 IDENT_8 = new org . apache . IDENT_5 . image . loader . impl . METHOD_10 ( in ) ; java . io . IDENT_9 IDENT_10 = IDENT_8 . METHOD_11 ( ) ; while ( true ) { int IDENT_11 ; int IDENT_12 = IDENT_8 . METHOD_12 ( ) ; switch ( IDENT_12 ) { case org . apache . IDENT_5 . image . loader . impl . IDENT_13 . IDENT_14 : out . write ( 255 ) ; out . write ( IDENT_12 ) ; break ; case org . apache . IDENT_5 . image . loader . impl . IDENT_13 . IDENT_15 : case org . apache . IDENT_5 . image . loader . impl . IDENT_13 . IDENT_16 : out . write ( 255 ) ; out . write ( IDENT_12 ) ; org . apache . commons . io . IDENT_17 . METHOD_13 ( in , out ) ; return ; case org . apache . IDENT_5 . image . loader . impl . IDENT_13 . IDENT_18 : boolean IDENT_19 = false ; in . METHOD_14 ( 16 ) ; try { IDENT_11 = IDENT_8 . METHOD_15 ( ) ; byte [ ] IDENT_20 = new byte [ INT_0 ] ; IDENT_10 . METHOD_16 ( IDENT_20 ) ; if ( ( IDENT_10 . METHOD_17 ( 1 ) ) != 1 ) { throw new java . io . IOException ( STRING_1 ) ; } if ( STRING_2 . equals ( new java . lang . String ( IDENT_20 , STRING_3 ) ) ) { IDENT_19 = ( this . image . METHOD_18 ( ) ) != null ; } } finally { in . METHOD_19 ( ) ; } if ( IDENT_19 ) { IDENT_8 . METHOD_20 ( ) ; break ; } default : out . write ( 255 ) ; out . write ( IDENT_12 ) ; IDENT_11 = IDENT_8 . METHOD_15 ( ) ; out . write ( ( ( IDENT_11 > > > 8 ) & 255 ) ) ; out . write ( ( ( IDENT_11 > > > 0 ) & 255 ) ) ; int IDENT_21 = IDENT_11 - 2 ; byte [ ] buf = new byte [ INT_1 ] ; while ( IDENT_21 > 0 ) { int IDENT_22 = java . lang . Math . min ( buf . length , IDENT_21 ) ; IDENT_10 . METHOD_16 ( buf , 0 , IDENT_22 ) ; out . write ( buf , 0 , IDENT_22 ) ; IDENT_21 OP_0 IDENT_22 ; } } } } finally { org . apache . commons . io . IDENT_17 . METHOD_21 ( in ) ; } }
org . junit . Assert . assertArrayEquals ( bytes , actual . toByteArray ( ) )