Java NIO Servlet to File

Posted by Gandalf on Stack Overflow See other posts from Stack Overflow or by Gandalf
Published on 2010-06-17T16:23:15Z Indexed on 2010/06/17 16:33 UTC
Read the original article Hit count: 291

Filed under:
|
|
|

Is there a way (without buffering the whole Inputstream) to take the HttpServletRequest from a Java Servlet and write it out to a file using all NIO? Is it even worth trying? Will it be any faster reading from a normal java.io stream and writing to a java.nio Channel or do they both really need to be pure NIO to see a benefit? Thanks.

© Stack Overflow or respective owner

Related posts about java

Related posts about Performance