One sentence skills: String Quick package is Bytebuffer (Java)

xiaoxiao2021-03-06  15

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.

* /

转载请注明原文地址:https://www.9cbs.com/read-46809.html

New Post(0)