Java has always issues with its I/O performance. To handle large amount of data, it will take significant amount of time. So you must tune and improve your I/O performance. It should be done on high priority by the developer.
Follow these rules to improve I/O performance.
• Minimize hard disk access.
• Minimize OS access.
• Minimize processing of individual bytes
Also you can consider following to improve your I/O performance.
Java IO programs use byte streams to perform input and output of 8-bit bytes. All byte stream classes are descended from InputStream and OutputStream.
There are many byte stream classes. To demonstrate how byte streams work, we'll focus on the file I/O byte streams, FileInputStream and FileOutputStream. Other kinds of byte streams are used in much the same way; they differ mainly in the way they are constructed.
A FileInputStream obtains input bytes from a file in a