Skip to content

Commit c825302

Browse files
Update README.md
1 parent 389160b commit c825302

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

README.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,81 @@
11
# Java-SerialX
22
SerialX is a powerful utility library to serialize objects in Java.
33
SerialX is improving regular Java Base64 serialization and adding serialization protocols that you can create for objects that cant be serialized using regular way. For example final non-serializable objects, 3rd party objects and others. SerialX is also JSON like "programming" language that are objects serialized into. This also allows you to serialize multiple objects into one string or also into file. But unlike to JSON, SerialX is based on determinate order of arguments or values we can say. In other words SerialX allows you to serialize **anything**, it's pretty simple to use and practically limitless.
4+
## Comparison: JACKSON (Json) vs XMLEncoder (XML) vs SerialX (SerialX)
5+
Sample object
6+
`
7+
public class Foo
8+
{
9+
double val1 = 55, val2 = 455.45;
10+
float val3 = 236.12F;
11+
boolean flag = true;
12+
13+
public double getVal1()
14+
{
15+
return val1;
16+
}
17+
public void setVal1(double val1)
18+
{
19+
this.val1 = val1;
20+
}
21+
public double getVal2()
22+
{
23+
return val2;
24+
}
25+
public void setVal2(double val2)
26+
{
27+
this.val2 = val2;
28+
}
29+
public float getVal3()
30+
{
31+
return val3;
32+
}
33+
public void setVal3(float val3)
34+
{
35+
this.val3 = val3;
36+
}
37+
public boolean isFlag()
38+
{
39+
return flag;
40+
}
41+
public void setFlag(boolean flag)
42+
{
43+
this.flag = flag;
44+
}
45+
}
46+
`
47+
**Json:**
48+
`
49+
{
50+
"val1" : 55,
51+
"val2" : 455.45,
52+
"val3" : 236.12,
53+
"flag" : true
54+
}
55+
`
56+
**XML:**
57+
`
58+
<?xml version="1.0" encoding="UTF-8"?>
59+
<java version="1.8.0_92" class="java.beans.XMLDecoder">
60+
<object class="org.some.beautiful.Foo">
61+
<void property="val1">
62+
<double>55</double>
63+
</void>
64+
<void property="val2">
65+
<double>455.45</double>
66+
</void>
67+
<void property="val3">
68+
<float>236.12</float>
69+
</void>
70+
<void property="flag">
71+
<boolean>true</boolean>
72+
</void>
73+
</object>
74+
</java>
75+
`
76+
**SerialX:**
77+
org.some.beautiful.Foo 55 455.45 236.12F T;
78+
479
## Info
580
* If you want to add or see issues just click on [Issues section](https://github.com/PetoPetko/Java-SerialX/issues) in up.
681
* If you want to comment use [Issues section](https://github.com/PetoPetko/Java-SerialX/issues) too.

0 commit comments

Comments
 (0)