Randomaccessfile
-----------------------
Random access to files
1) object-->randomaccessfile
2) Implement Datainput DataOutput interface
3) Seek (int byte)
4)
Using Randomaccessfile to implement file compositing
The JavaBean implementation of its own definition requires the implementation of the Serializable interface, which is used to identify the interface, there is no task method, is to the Java virtual machine to see.
Inter-network transmission or localized storage requires serialization
Converts a Java object into a binary array,
Java.io.Serializable//Serializable interface, identity, JVM look.
Serialization version UID//a tag for the class, the main purpose is to carry out crossdress line.
Deep replication refers to copying an entire object graph. Benefits: Generate a large number of objects in a flash, consume memory
transient://Temporary Keywords
ObjectInputStream//ObjectOutputStream Object flow
Bytearrayinputstream/bytearrayoutputstream Memory Output input stream
Read (char) write (byte[])
DataInputStream//Data input stream
DataOutputStream//Data output stream
The occurrence of a character stream in order to manipulate characters
More important is the addition of the encoding conversion
Through the subclass conversion flow to complete
InputStreamReader
OutputStreamWriter
A character set can be added when two objects are constructed
Java Foundation 15th Day Summary