String str = "content"; bytebuffer bb = bytebuffer.wrap (Str.getbytes ());
/ * This statement is simple, and the planet is known in the future. Where is the most useful? ----- When you write a web server through NIO and SocketChannel, you may often need to send a string to the client, but the SocketChannel.Write method requires a Bytebuffer as a parameter.
* /