METHOD_0 ( ) { org . kaazing . IDENT_0 . IDENT_1 helper = org . kaazing . IDENT_0 . IDENT_1 . newInstance ( ) ; java . net . URI location = java . net . URI . create ( STRING_0 ) ; org . kaazing . IDENT_0 . ws . IDENT_2 connection = ( ( org . kaazing . IDENT_0 . ws . IDENT_2 ) ( helper . METHOD_1 ( location ) ) ) ; org . kaazing . IDENT_0 . ws . IDENT_3 IDENT_4 = connection . METHOD_2 ( ) ; org . kaazing . IDENT_0 . ws . IDENT_5 IDENT_6 = connection . METHOD_3 ( ) ; org . kaazing . IDENT_0 . ws . IDENT_7 type = null ; char [ ] IDENT_8 = new char [ INT_0 ] ; int IDENT_9 = 0 ; if ( ( type = IDENT_4 . next ( ) ) != ( org . kaazing . IDENT_0 . ws . IDENT_7 . IDENT_10 ) ) { assert ! ( IDENT_4 . streaming ( ) ) ; switch ( type ) { case org . kaazing . IDENT_0 . ws . IDENT_7 . IDENT_11 : IDENT_9 = IDENT_4 . METHOD_4 ( IDENT_8 ) ; break ; default : "<AssertPlaceHolder>" ; break ; } } char [ ] text = new char [ IDENT_9 ] ; java . lang . System . METHOD_5 ( IDENT_8 , 0 , text , 0 , IDENT_9 ) ; IDENT_6 . METHOD_6 ( text ) ; IDENT_12 . METHOD_7 ( ) ; } METHOD_4 ( char [ ] ) { if ( buffer == null ) { throw new java . lang . METHOD_8 ( STRING_1 ) ; } if ( ( IDENT_13 . get ( ) ) == null ) { throw new java . io . IOException ( org . kaazing . IDENT_0 . ws . internal . io . IDENT_14 . IDENT_15 ) ; } if ( ( IDENT_13 . get ( ) ) != ( java . lang . Thread . METHOD_9 ( ) ) ) { throw new java . io . IOException ( org . kaazing . IDENT_0 . ws . internal . io . IDENT_14 . IDENT_16 ) ; } switch ( type ) { case org . kaazing . IDENT_0 . ws . IDENT_7 . IDENT_10 : return - 1 ; case IDENT_17 : throw new java . io . IOException ( org . kaazing . IDENT_0 . ws . internal . io . IDENT_14 . IDENT_18 ) ; default : break ; } if ( streaming ( ) ) { throw new java . io . IOException ( org . kaazing . IDENT_0 . ws . internal . io . IDENT_14 . IDENT_19 ) ; } assert IDENT_20 ; int IDENT_9 = METHOD_10 ( buffer , 0 , buffer . length ) ; IDENT_21 = - 1 ; METHOD_11 ( ) ; return IDENT_9 ; }
org . junit . Assert . assertSame ( org . kaazing . IDENT_0 . ws . IDENT_7 . IDENT_11 , type )