天天看点

Object archiving

object archiving

archiving is the process of converting a group of related objects to a form that can be stored or transferred between applications. the end result of archiving—an archive—is a stream of bytes that records the identity of objects, their encapsulated values, and their relationships with other objects. unarchiving, the reverse process, takes an archive and reconstitutes an identical network of objects. 

the main value of archiving is that it provides a generic way to make objects persistent. instead of writing object data out in a special file format, applications frequently store their model objects in archives that they can write out as files. an application can also transfer a network of objects—commonly known as an object graph—to another application using archiving. applications often do this for pasteboard operations such as copy and paste. 

Object archiving

------------------越是喧嚣的世界,越需要宁静的思考------------------

合抱之木,生于毫末;九层之台,起于垒土;千里之行,始于足下。

积土成山,风雨兴焉;积水成渊,蛟龙生焉;积善成德,而神明自得,圣心备焉。故不积跬步,无以至千里;不积小流,无以成江海。骐骥一跃,不能十步;驽马十驾,功在不舍。锲而舍之,朽木不折;锲而不舍,金石可镂。蚓无爪牙之利,筋骨之强,上食埃土,下饮黄泉,用心一也。蟹六跪而二螯,非蛇鳝之穴无可寄托者,用心躁也。