O'Reilly logo

Java I/O, NIO and NIO.2 by Jeff Friesen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Listing 12-35’s use of copy() to copy from the URL’s input stream to the Path’s page.html file results in a much shorter listing than its Listing 12-27 counterpart.

Compile Listing 12-35 (javac SavePage.java) and run the application (java SavePage http://apress.com). You should ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required