java - 使用了NIO还能重新使用IO吗?
大家讲道理
大家讲道理 2017-04-18 10:09:50
0
2
362

比如服务器的底层的socket的channel的read和write 已经注册到了selector中, 那么上层的servlet还能调用getOutputStream返回servletOutputStream吗? 如果能该怎么写代码呢?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
Peter_Zhu

Why do the title and problem description seem to be written differently? Were they written by two people?

伊谢尔伦

Yes, the technology used by the server is transparent to you when developing Servlets. You don’t need to worry about whether the server is NIO or BIO, Servlets are written the same.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template