Nodes can be divided into stream
1. Any type of data can be read:
Example (copy any file)
2. byte stream: You can only read plain text
Function Flow:
1. Buffer Flow:
Action: increase functionality, improve performance, increase the efficiency of reading and writing
Divided into: byte buffer the input stream of bytes buffered output stream stream input character buffer character buffer output stream
Conversion flow:
Basic data types stream:
With basic data types read | string type data
DataInputStream and DataOutputStream: There are new methods: ReadXXX () and writeXXX () can not polymorphic
Object flow:
Serialization and deserialization: serialize (the Serialization) is to convert the state information of the object may be stored or transmitted in the form of a process.
Sequence of output streams: ObjectOutputStream deserialized input stream: ObjectInputStream
Not all classes of sequences can allow you to implement java.io.Serializable implements Serializable object interface into a sequence of bytes, these bytes to regenerate the original target sequence may be completely stored after preparation.
Not all attributes need to be serialized transient: static content can not be serialized; if the parent class has realized serialization, no subclass, subclass all content can be serialized; if not implemented serialization in the parent class, child there implement serialization class, subclass can serialize their content