This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
The latter is a little more efficient if you reuse the decoder. Of course, replace UTF-8 with whatever encoding is appropriate for your application.
"I'm not back." - Bill Harding, Twister
Joined: Oct 10, 2003
Jim, Thank you very much. I have run into a problem in my program which i did not see it coming. Actually the program wants to convert a string into a byte buffer. Any pointers will be appreciated. Thanks.