public static byte [ ] fromString ( String unicodeString ) { byte [ ] result = null ; if ( unicodeString != null ) { result = unicodeString . getBytes ( StandardCharsets . UTF_8 ) ; } return result ; }
Converts the given String to a byte array .