Serialization is the process of encoding an object or a class in a persistent or transportable state. This allows a complex data types claim to encode To save, transmit and decode, with the possibility that a separate process does the decoding. There are two types of serialization: binary serialization takes over – the data type and converts it into a binary data stream. XML Serialization – Converts the data in an XML stream that you can then convert an XML document. You can either use the output of the type and serialization to take in memory, rather than in a file and not give them over a network connection. For example, your application has a complex data type defined customer data stores information about a client (such as name, address, telephone number, and so on). You can serialize the data type of customer data in a binary or XML stream that you can then save on process boundaries to transport or to convert a file for later use. The object is serialized, if it is in binary or XML format. De-serialization is the process of converting a serialized object back to its original shape. Generally, you de-serialize objects back into their original type. Therefore, if you serialize the data type of customer data as a binary stream, or as an XML document, you de-serialize it back to the data type of customer data and not on the data type of job. Both. NET and J2EE use serialization to exchange data between applications within the same platform. You can also use the serialization of data between applications on different platforms by serialized objects for de-serialization on the alternative platform. The next sections examine how the binary and XML serialization implementation. NET and Java. Binary Serialization is the process of taking a complex data type (or object) and encoding into a binary stream, changing to a persistent state, transport, and then decoding (de-serialize) back into the original complex data type. Both Java and. NET binary serializer that each contain a serializeable type can convert into a byte stream. The classes to be conducted this serialization similar to implement in any platform and easily. For binary serialization in both. NET and Java, you have to add a label to indicate that you want to serialize a type. In. NET, you can use the attribute [Serializable] or implement the Serializable interface. In Java, the equivalent approach to implement the Java class-io. serializable. Unfortunately, the. NET and Java serialized incompatible. Therefore, you can not stream the serialized version of the Customer Data output from the Java object directly into the serializer. NET version and vice versa. Even if you could, you would still face the challenge of always. to understand NET Framework application, the customer data object that produced the Java serializer. The. NET page may not have an equivalent data type in the Customer Data de-serialized object accept customer data from the Java side. You can use binary serialization for the link. NET, Java, as long as the same Formatter leads the serialization and de-serialization of an object. The format in the byte stream created from the data type must exactly match the format that receives the byte stream and reconstruct the object. There are two approaches to use to circumvent the incompatibility of the J2EE Standard. NET binary serializer. These are: Create a custom serializer the same formatting options to Java and sharing. NET. Use a third-party product, with the binary formatter in the plants. NET Framework, such as Yes. NET or JNBridgePro. XML Serialization is the process of taking a complex data type (or object) and encoding it into an XML stream. You can then this XML stream into a persistent state in the form of an XML document, transport, and then later decode (de-serialize) back into the original complex data type (or object). To understand the process of XML serialization, you must have a basic understanding of XML. XML is text-based document markup language, extensible structured and contains data. XML is text-based, so you can read it as normal text, and because it is extensible, you can use it to describe virtually any type of information. Therefore, XML documents include: • Text • Picture • Program configuration data schemas • Comments • Adds XML documents can also instructions about how to use the data in the document itself.
Basics of Serialization and its Type
SPEC India is a Custom Software Application Development and Software Solutions Company in Ahmedabad, India. Our service includes Legacy Application Migration and Interfaces, Java Application Development, Oracle. Net and Mobile Computing.