It 18 Palm Palm 15th Day Course Summary

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.