List of utility methods to do ByteBuffer from String
ByteBuffer | toByteBuffer(String value, String charsetName) convert a String to a ByteBuffer ByteBuffer result = null; try { result = ByteBuffer.wrap(value.getBytes(charsetName)); } catch (Exception e) { return result; |