1、Java原生序列化
Java原生序列化方法即通过Java原生流(InputStream和OutputStream之间的转化)的方式进行转化。
2、Json序列化
Json序列化一般会使用jackson包,通过ObjectMapper类来进行一些操作,比如将对象转化为byte数组或者将json串转化为对象。现在的大多数公司都将json作为服务器端返回的数据格式。
3、FastJson序列化
fastjson 是由阿里巴巴开发的一个性能很好的Java 语言实现的 Json解析器和生成器。特点:速度快,测试表明fastjson具有极快的性能,超越任其他的java json parser。功能强大,完全支持java bean、集合、Map、日期、Enum,支持范型和自省。
4、ProtoBuff序列化
ProtocolBuffer是一种轻便高效的结构化数据存储格式,可以用于结构化数据序列化。适合做数据存储或 RPC 数据交换格式。可用于通讯协议、数据存储等领域的语言无关、平台无关、可扩展的序列化结构数据格式。
1. Java native serialization
Java native serialization method is to convert through Java native stream (conversion between InputStream and OutputStream).
2. Json serialization
Json serialization generally uses the jackson package and performs some operations through the ObjectMapper class, such as converting objects into byte arrays or converting json strings into objects. Most companies now use json as the data format returned by the server.
3. FastJson serialization
fastjson is a Json parser and generator implemented in Java language with good performance developed by Alibaba. Features: fast speed, tests show that fastjson has extremely fast performance, surpassing any other java json parser. Powerful, fully supports java beans, collections, Maps, dates, Enums, and supports paradigms and introspection.
4. ProtoBuff serialization
ProtocolBuffer is a lightweight and efficient structured data storage format that can be used for structured data serialization. Suitable for data storage or RPC data exchange format. It can be used in communication protocols, data storage and other fields as a language-independent, platform-independent, and extensible serialized structured data format.
The sequential development method is a traditional software development process that follows the order of requirements analysis, design, coding, testing, and maintenance. This development method focuses on document writing and process specification, and usually requires multiple iterations to complete the development.