title: Java: StringBuffer to byte[] without toString
body: <p>The title says it all. Is there any way to convert from StringBuilder to byte[] without using a String in the middle?</p>
  
  <p>The problem is that I'm managing REALLY large strings (millions of chars), and then I have a cycle that adds a char in the end and obtains the byte[]. The process of converting the StringBuffer to String makes this cycle veryyyy very very slow.</p>
  
  <p>Is there any way to accomplish this? Thanks in advance!</p>