create a fail chunk . the `` handlechunk '' methods can use this to return an error message when they are not able to process a chunk . 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 String getString concode_elem_sep int type
Chunk function ( int arg0 , String arg1 ) { if ( arg1 == null ) arg1 = "srini_string" ; ByteBuffer loc0 = ByteBuffer . allocate ( 8 + arg1 . length ( ) * 2 ) ; loc0 . order ( ChunkHandler . CHUNK_ORDER ) ; loc0 . putInt ( arg0 ) ; loc0 . putInt ( arg1 . length ( ) ) ; putString ( loc0 , arg1 ) ; return new Chunk ( CHUNK_FAIL , loc0 ) ; }