serialize the thrift object into a byte array . the process is simple , just clear the byte array output , write the object into it , and grab the raw bytes . concode_field_sep TProtocol protocol_ concode_elem_sep TIOStreamTransport transport_ concode_elem_sep ByteArrayOutputStream baos_ concode_field_sep String toString concode_elem_sep String toString
byte [ ] function ( TBase arg0 ) { baos_ . reset ( ) ; arg0 . write ( protocol_ ) ; return baos_ . toByteArray ( ) ; }