Finish the 16th day of it 18 Palm Java Foundation Course today:
Learning content:
Serialization of
----------------
The object is used for inter-network transmission or for this secondary storage.
Also called serialization
Procedure to convert Java objects to byte[]
Java.io.Serializable//serializable interface, identification. Jvm.
Serialized version UID://
Deep replication refers to copying an entire object graph.
Transient://Temp keyword.
Objectinputstream/objectouputstream
Bytearrayinputstream/bytearrayoutputstream
Read (char c) write (byte[])
DataInputStream//Data input stream
DataOutputStream//Output output stream
byte[] bytes = "China". GetBytes ("iso-8859-1");
New String (Bytes, "iso-8859-1");
String.getbytes ("CharSet"); Encode a string
New String (Bytes, "charset") '; Decoding
Use the Bin/native2ascii tool provided by the JDK to implement Chinese transcoding:
----------------------------------------------
1. Create a text file (GBK encoding, it is recommended to use Notepad. ) 1.txt
[1.txt]
You ABC good, China!
2. Enter the 1.txt directory with cmd
Cmd
3.native2ascii-encoding gb2312 1.txt 2.txt
Ui:user interface
--------------------------
1.GUI://graphic User interface
2.Label://tags, cannot be edited, display text
3.Button//button
4.Checkbox//check box
5.RadioBox//radio button
6.Menubar//Menu bar
7.Menu//Menu
8.MenuItem//menu item
9.Toolbar//Toolbar
10.Statusbar//status bar
11.TitleBar//title bar
12.Scrollbar//scroll bar
13.Taskbar//taskbar
14.active//Activated
15.deactive//passivated
16.TextField//text box, single line
17.TextArea//Text field, multiple lines
18.password//Password box
Socket
----------------------
1. Sockets.
2.client/server:
3.ServerSocket://server-side socket, receive request.
4.ss.accept ()//
Tcp
----------------------
1.transfer control protocal, transmission protocol
2. You must first establish a connection, a reliable protocol. No data loss.
3.
4.
5.
Udp
---------------------
1.User Datagram protocal, User Datagram protocol.
2.
3.
4.
5.
Mvc
------------------------
1.model-view-controller, Model View Control
2.
3.
4.
Problems encountered:
1.GUI component layout is not familiar,
2.java serialization
3.Socket is used for what, tcp/udp difference and contact
Questions that need help
1.MVC Frame
2.tcp/udp
3.GUI design includes a set of tags, menu bar, toolbars, password boxes, etc., combined use.
This article from "Rookie Achievement Data Road" blog, reproduced please contact the author!
It 18 palm Palm 16th Day Course Summary