private void encodeStreamBody ( StringBuffer result , JsJmsStreamMessage msg ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "encodeStreamBody" ) ; // Internal method to get the stream as a List try { List < Object > body = ( ( JsJmsStreamMessageImpl ) msg ) . getBodyList ( ) ; if ( body . size ( ) > 0 ) { result . append ( ' ' ) ; for ( int i = 0 ; i < body . size ( ) ; i ++ ) { encodeObject ( result , body . get ( i ) ) ; if ( i < body . size ( ) - 1 ) result . append ( ' ' ) ; } } } catch ( UnsupportedEncodingException e ) { FFDCFilter . processException ( e , "com.ibm.ws.sib.mfp.impl.WebJsJmsMessageEncoderImpl.encodeStreamBody" , "245" ) ; // Just treat it as null. } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "encodeStreamBody" ) ; }
Encode a stream message body