Finish the 15th day of it 18 Palm Java Foundation Course today:
Learning content:
1. Folder replication
---------------
1. Analysis
Srcfolder + Destfolder
d:/a d:/b
D:/b/a/xxx
2. Recursively remove all files and directories + FileIO (fileinputstream/fileouputstream)
3.
4.
d:/xxx/x/A/a1/a.txt d:/b/
9 10
D:/xxx/xx/a/a1/a2/b.txt D:/b/a/a1/a.txt
Randomaccessfile
--------------------
Random access to files.
1.Object-Java.io.RandomAccessFile
2. Implement Interface: Datainput Dataouput
3.seek (int long);
Locate the following table
4.skipBytes (int bytes);
Number of bytes skipped
5.
Serializable/serialization
--------------------
1. Convert the object to a byte array, write through the input stream, and then crossdress the byte array in the corresponding output stream to the object
2.
3.
4.
JavaBean implementation of serialization requires the implementation of the serializable interface, the iconic interface.
------------------------------------------------------
1.java.io.serializable
2. Identify the line interface, there is no method.
3.JVM needs to determine the interface to do serialization processing.
4.
5. Properties that do not require serialization can be modified with transient
Problems encountered:
1. The robustness of folder replication process is complex and difficult to understand
2.java serialization technology and crossdress-line technology
3.
Questions that need help
1. File copy
This article from "Rookie Achievement Data Road" blog, reproduced please contact the author!
It 18 Palm Palm 15th Day Course Summary