utility function to copy a string out of a bytebuffer . this is here because multiple chunk handlers can make use of it , and there 's nowhere better to put it . concode_field_sep ByteOrder CHUNK_ORDER concode_elem_sep int CHUNK_FAIL concode_field_sep void connected concode_elem_sep Chunk handleChunk concode_elem_sep ByteBuffer wrapChunk concode_elem_sep void disconnected concode_elem_sep void putString concode_elem_sep String name concode_elem_sep int type concode_elem_sep Chunk createFailChunk
String function ( ByteBuffer arg0 , int arg1 ) { char [ ] loc0 = new char [ arg1 ] ; for ( int loc1 = 0 ; loc1 < arg1 ; loc1 ++ ) loc0 [ loc1 ] = arg0 . getChar ( ) ; return new String ( loc0 ) ; }