public static byte [ ] toByteArray ( String string ) { EnsureUtil . ensureActiveCommandContext ( "StringUtil.toByteArray" ) ; ProcessEngineConfigurationImpl processEngineConfiguration = Context . getProcessEngineConfiguration ( ) ; return toByteArray ( string , processEngineConfiguration . getProcessEngine ( ) ) ; }
Gets the bytes from a string using the current process engine s default charset