I've searched a lot, and I can't seem to find anything related to converting a String to a fixed length byte in Java, I don't know if it's possible also, since we've got the encondings.

```
String word = "asdsda";
byte[] bytes = Java.Convert(word, 20);

```

As the example above shows just to examplify, is there a way in Java to convert a String to a fixed positive value of bytes?