1
Pins

Reading file asynchronously in Java

published 600 days, 3 hours, 10 minutes ago posted by anishaanisha 601 days, 21 hours, 38 minutes ago
Friday, August 31, 2012 1:48:28 PM GMT Wednesday, August 29, 2012 7:20:41 PM GMT

We all are familiar with reading/writing file in a synchronous way. In Java 7 a new API was added to read/write the contents of the file asynchronously. The API is AsynchronousFileChannel. In this example lets look at how to read the contents of the file asynchronously. There are two approaches to read the contents asynchronously:

category: Java EE | clicked: 9 | | source: www.javabeat.net | show counter code
tags: Asynchronous, file, Java, read


To post comments using your Facebook,Twitter, Gmail etc credentials in the Discus comments section. Or use your Javapins credentials at the end of the page.
To post your comment as a Javapins user please login or signup to Javapins database.