Introduction - If you have any usage issues, please Google them yourself
Summary: Java source code, file operations, read files, binary Java read binary data files stored chunks, java.io package provides a BufferedInputStream and BufferedOutputStream classes to read and write cache flow. However, when reading and writing large data files, use these two classes of effect is not very good. This example demonstrates how to customize the cache and use DataInputStream and DataOutputStream class does not have the buffering functions to read and write chunks of data files. Results as shown, when you press " Start" button, the program from the source file " d: \ image.jpg" reads the specified size (buffer size) of data into a buffer, then the data cache written to the destination file " d: \ a.jpg" , and so forth until you read the source file.