title: Java IPv6 Address String to Bytes
body: <p>How can I convert a String containing the ipv6's machine packet destination to a 16 byte array? I know about getBytes and encodings, but I can't seem to understand which encoding I should use or if I have to convert that String to Hexadecimal or not.</p>
  
  <pre><code>String ipv6 = "2001:0DB8:AC10:FE01:0000:0000:0000:0000";
  byte[] bytes = ipv6.getBytes(); //must be a 16 byte array
  </code></pre>
  
  <p>An example of what I wanna do, just to exemplify. 
  Obs.: I have to convert the String to a 16 byte array
  Thanks</p>