Description: 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.
To Search:
File list (Check if you may need any files):
Java读存大块资料(二进制)文件\JDATASTREAMDEMO\BAK\JDATASTREAMDEMO\JDATASTREAMDEMO.JAVA~1~
..............................\...............\...\...............\MAINFRAME.JAVA~1~
..............................\...............\...\...............\MAINFRAME.JAVA~2~
..............................\...............\...\...............\MAINFRAME.JAVA~3~
..............................\...............\...\...............\MAINFRAME.JAVA~4~
..............................\...............\...\...............\MAINFRAME.JAVA~5~
..............................\...............\...\...............\MAINFRAME.JAVA~6~
..............................\...............\...\...............\MAINFRAME.JAVA~7~
..............................\...............\CLASSES\JDATASTREAMDEMO\JDATASTREAMDEMO.CLASS
..............................\...............\.......\...............\MAINFRAME$1.CLASS
..............................\...............\.......\...............\MAINFRAME.CLASS
..............................\...............\.......\PACKAGE CACHE\JDATASTREAMDEMO.DEP2
..............................\...............\JDATASTREAMDEMO.HTML
..............................\...............\JDATASTREAMDEMO.JPX
..............................\...............\JDATASTREAMDEMO.JPX.LOCAL
..............................\...............\JDATASTREAMDEMO.JPX.LOCAL~
..............................\...............\JDATASTREAMDEMO.JPX~
..............................\...............\SRC\JDATASTREAMDEMO\JDATASTREAMDEMO.JAVA
..............................\...............\...\...............\MAINFRAME.JAVA
..............................\...............\BAK\JDATASTREAMDEMO
..............................\...............\CLASSES\JDATASTREAMDEMO
..............................\...............\.......\PACKAGE CACHE
..............................\...............\SRC\JDATASTREAMDEMO
..............................\...............\BAK
..............................\...............\CLASSES
..............................\...............\SRC
..............................\JDATASTREAMDEMO
Java读存大块资料(二进制)文件